forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-37580][CORE] Reset numFailures when one of task attempts succeeds
### What changes were proposed in this pull request? When a task failed count reach the max threshold, abort check if another attempt succeed. ### Why are the changes needed? In extreme situation, if one task has failed 3 times(max failed threshold is 4 in default), and there is a retry task and speculative task both in running state, then one of these 2 task attempts succeed and to cancel another. But executor which task need to be cancelled lost(oom in our situcation), this task marked as failed, and TaskSetManager handle this failed task attempt, it has failed 4 times so abort this stage and cause job failed. ### Does this PR introduce _any_ user-facing change? Yes, the meaning of `spark.task.maxFailures` has changed, from total count to continuous count of one particular task ### How was this patch tested? Unit test. Closes apache#34834 from wangshengjie123/fix_taskset_manager_abort_stage. Lead-authored-by: wangshengjie3 <[email protected]> Co-authored-by: wangshengjie <[email protected]> Signed-off-by: yi.wu <[email protected]>
- Loading branch information
1 parent
eab2331
commit fc877e9
Showing
3 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters