Skip to content

[SPARK-20163] Kill all running tasks in a stage in case of fetch failure - #17485

Closed
sitalkedia wants to merge 1 commit into
apache:masterfrom
sitalkedia:kill_tasks_on_stage_failure
Closed

[SPARK-20163] Kill all running tasks in a stage in case of fetch failure#17485
sitalkedia wants to merge 1 commit into
apache:masterfrom
sitalkedia:kill_tasks_on_stage_failure

Conversation

@sitalkedia

Copy link
Copy Markdown

What changes were proposed in this pull request?

Currently, the scheduler does not kill the running tasks in a stage when it encounters fetch failure, as a result, we might end up running many duplicate tasks in the cluster. There is already a TODO in TaskSetManager to kill all running tasks which has not been implemented.

How was this patch tested?

Unit tests.

@sitalkedia

Copy link
Copy Markdown
Author

@tgravescs

Copy link
Copy Markdown
Contributor

see the discussion on the mailing list. We now have 4 different jira for handling fetch failures. I think we should get a design for the entire thing first.

personally I don't want to kill the running ones as they have done useful work.

sched.backend.killTask(
attemptInfo.taskId,
attemptInfo.executorId,
interruptThread = true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not valid. We don't know that this can be done safely, which is why spark.job.interruptOnCancel defaults to false. SPARK-17064

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, @markhamstra, does it makes sense to do it only if spark.job.interruptOnCancel is enabled?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do it then, but there is still the question of whether we should do it. That discussion belongs in SPARK-20178.

@SparkQA

Copy link
Copy Markdown

Test build #75402 has finished for PR 17485 at commit ec2ac34.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sitalkedia

Copy link
Copy Markdown
Author

see the discussion on the mailing list. We now have 4 different jira for handling fetch failures. I think we should get a design for the entire thing first.

Sure @tgravescs, let me put out a design doc with my initial thoughts on it.

@maropumaropu mentioned this pull request Apr 23, 2017
@sitalkedia
sitalkedia deleted the kill_tasks_on_stage_failure branch April 25, 2017 10:18
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
This pr proposed to close stale PRs. Currently, we have 400+ open PRs and there are some stale PRs whose JIRA tickets have been already closed and whose JIRA tickets does not exist (also, they seem not to be minor issues).
// Open PRs whose JIRA tickets have been already closed
Closesapache#11785Closesapache#13027Closesapache#13614Closesapache#13761Closesapache#15197Closesapache#14006Closesapache#12576Closesapache#15447Closesapache#13259Closesapache#15616Closesapache#14473Closesapache#16638Closesapache#16146Closesapache#17269Closesapache#17313Closesapache#17418Closesapache#17485Closesapache#17551Closesapache#17463Closesapache#17625
// Open PRs whose JIRA tickets does not exist and they are not minor issues
Closesapache#10739Closesapache#15193Closesapache#15344Closesapache#14804Closesapache#16993Closesapache#17040Closesapache#15180Closesapache#17238
N/A
Author: Takeshi Yamamuro <yamamuro@apache.org>
Closesapache#17734 from maropu/resolved_pr.
Change-Id: Id2e590aa7283fe5ac01424d30a40df06da6098b5
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
## What changes were proposed in this pull request?
This pr proposed to close stale PRs. Currently, we have 400+ open PRs and there are some stale PRs whose JIRA tickets have been already closed and whose JIRA tickets does not exist (also, they seem not to be minor issues).
// Open PRs whose JIRA tickets have been already closed
Closesapache#11785Closesapache#13027Closesapache#13614Closesapache#13761Closesapache#15197Closesapache#14006Closesapache#12576Closesapache#15447Closesapache#13259Closesapache#15616Closesapache#14473Closesapache#16638Closesapache#16146Closesapache#17269Closesapache#17313Closesapache#17418Closesapache#17485Closesapache#17551Closesapache#17463Closesapache#17625
// Open PRs whose JIRA tickets does not exist and they are not minor issues
Closesapache#10739Closesapache#15193Closesapache#15344Closesapache#14804Closesapache#16993Closesapache#17040Closesapache#15180Closesapache#17238
## How was this patch tested?
N/A
Author: Takeshi Yamamuro <yamamuro@apache.org>
Closesapache#17734 from maropu/resolved_pr.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@sitalkedia@tgravescs@SparkQA@markhamstra