Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4433

Racing condition in zipWithIndex

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1.1.1, 1.2.0
    • Fix Version/s: 1.0.3, 1.1.1, 1.2.0
    • Component/s: Spark Core
    • Labels:
      None

      Description

      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 cause a deadlock in DAGScheduler.getPreferredLocs.

        Attachments

          Activity

            People

            • Assignee:
              mengxr Xiangrui Meng
              Reporter:
              mengxr Xiangrui Meng
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: