Uh oh!
There was an error while loading. Please reload this page.
[SPARK-5363] fix bug: remove() inside iterator is not safe - #4776
Conversation
davies
commented
Feb 26, 2015
cc @JoshRosen |
SparkQA
commented
Feb 26, 2015
Test build #27969 has started for PR 4776 at commit
|
JoshRosen
commented
Feb 26, 2015
LGTM pending Jenkins. |
JoshRosen
commented
Feb 26, 2015
Context for other reviewers: removing elements from a mutable HashSet while iterating over it can cause the iteration to skip over entries that weren't removed. In this case, this would cause PythonRDD to write fewer than |
SparkQA
commented
Feb 26, 2015
Test build #27969 has finished for PR 4776 at commit
|
AmplabJenkins
commented
Feb 26, 2015
Test PASSed. |
JoshRosen
commented
Feb 26, 2015
I'm going to merge this into |
Removing elements from a mutable HashSet while iterating over it can cause the iteration to incorrectly skip over entries that were not removed. If this happened, PythonRDD would write fewer broadcast variables than the Python worker was expecting to read, which would cause the Python worker to hang indefinitely. Author: Davies Liu <davies@databricks.com> Closes#4776 from davies/fix_hang and squashes the following commits: a4384a5 [Davies Liu] fix bug: remvoe() inside iterator is not safe (cherry picked from commit 7fa960e) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
Removing elements from a mutable HashSet while iterating over it can cause the iteration to incorrectly skip over entries that were not removed. If this happened, PythonRDD would write fewer broadcast variables than the Python worker was expecting to read, which would cause the Python worker to hang indefinitely. Author: Davies Liu <davies@databricks.com> Closes#4776 from davies/fix_hang and squashes the following commits: a4384a5 [Davies Liu] fix bug: remvoe() inside iterator is not safe (cherry picked from commit 7fa960e) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
During iterating, it's not safe to remove item.