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

Master throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 0.9.2, 1.0.1, 1.1.0
    • Spark Core
    • None

    Description

      ... if we launch a driver and there are more waiting drivers to be launched. This is because we remove from a list while iterating through this.

      Here is the culprit from Master.scala (L487 as of the creation of this JIRA, commit bc7041a42dfa84312492ea8cae6fdeaeac4f6d1c).

      for (driver <- waitingDrivers) {
        if (worker.memoryFree >= driver.desc.mem && worker.coresFree >= driver.desc.cores) {
          launchDriver(worker, driver)
          waitingDrivers -= driver
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              adav Aaron Davidson
              andrewor14 Andrew Or
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: