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

Dynamic allocation: do not allow user to request a negative delta

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.2.0
    • 1.2.2, 1.3.0
    • Spark Core, YARN
    • None

    Description

      If the user calls the following in series:

      sc.requestExecutors(-5)
      sc.killExecutor(...)

      Then we might crash the ApplicationMaster. Why?

      Well, if we request a negative number of additional executors, then the YarnAllocator will lower the target number of executors it is trying to achieve by 5. This might shoot the target number past 0. Then, if so, when we try to kill an executor it will fail the assertion that the target number must be >=0.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: