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

Racing condition in zipWithIndex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.2, 1.1.1, 1.2.0
    • 1.0.3, 1.1.1, 1.2.0
    • Spark Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: