GitHub user mengxr opened a pull request:
https://github.com/apache/spark/pull/3291
[SPARK-4433] fix a racing condition in zipWithIndex
Spark hangs with the following code:
~~~
sc.parallelize(1 to 10).zipWithIndex.repartition(10).count()
~~~
This is because ZippedWithIndexRDD triggers a job in getPartitions and it
causes a deadlock in DAGScheduler.getPreferredLocs (synced).
This should be applied to branch-1.0, branch-1.1, and branch-1.2.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mengxr/spark SPARK-4433
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3291.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3291
----
commit c284d9f0822ebdf426aa96fd22ceb3dc06c59e9c
Author: Xiangrui Meng <[email protected]>
Date: 2014-11-16T04:42:10Z
fix a racing condition in zipWithIndex
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]