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

Remove unnecessary addPendingTask calls in TaskSetManager.executorLost

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.0
    • Scheduler, Spark Core
    • None

    Description

      The proposed commit removes unnecessary calls to addPendingTask in
      TaskSetManager.executorLost. These calls are unnecessary: for
      tasks that are still pending and haven't been launched, they're
      still in all of the correct pending lists, so calling addPendingTask
      has no effect. For tasks that are currently running (which may still be
      in the pending lists, depending on how they were scheduled), we call
      addPendingTask in handleFailedTask, so the calls at the beginning
      of executorLost are redundant.

      I think these calls are left over from when we re-computed the locality
      levels in addPendingTask; now that we call recomputeLocality separately,
      I don't think these are necessary.

      Attachments

        Activity

          People

            kayousterhout Kay Ousterhout
            kayousterhout Kay Ousterhout
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: