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

Remove unnecessary TaskScheduler.killAllTaskAttempts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.3, 3.1.3, 3.2.4, 3.3.3, 3.4.1, 3.5.0
    • 4.0.0
    • Spark Core

    Description

      Spark has two functions to kill all tasks in a Stage:

      • `cancelTasks`: Not only kill all the running tasks in all the stage attempts but also abort all the stage attempts
      •  `killAllTaskAttempts`: Only kill all the running tasks in all the stage attemtps but won't abort the attempts.

      However, there's no use case in Spark that a stage would launch new tasks after its all tasks get killed. So I think we can replace `killAllTaskAttempts` with `cancelTasks` directly.

      Attachments

        Issue Links

          Activity

            People

              Ngone51 wuyi
              Ngone51 wuyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: