GitHub user shenh062326 opened a pull request: https://github.com/apache/spark/pull/14557
[SPARK-16709][CORE] Kill the running task if stage failed ## What changes were proposed in this pull request? At SPARK-16709, when a stage failed, but the running task is still running, the retry stage will rerun the running task, it could cause TaskCommitDeniedException and task retry forever. Here is the log: `16/07/28 05:22:15 INFO scheduler.TaskSetManager: Starting task 1.0 in stage 1.0 (TID 175, 10.215.146.81, partition 1,PROCESS_LOCAL, 1930 bytes) 16/07/28 05:28:35 INFO scheduler.TaskSetManager: Starting task 1.0 in stage 1.1 (TID 207, 10.196.147.232, partition 1,PROCESS_LOCAL, 1930 bytes) 16/07/28 05:28:48 INFO scheduler.TaskSetManager: Finished task 1.0 in stage 1.0 (TID 175) in 393261 ms on 10.215.146.81 (3/50) 16/07/28 05:34:11 WARN scheduler.TaskSetManager: Lost task 1.0 in stage 1.1 (TID 207, 10.196.147.232): TaskCommitDenied (Driver denied task commit) for job: 1, partition: 1, attemptNumber: 207` 1 task 1.0 in stage1.0 start 2 stage1.0 failed, start stage1.1. 3 task 1.0 in stage1.1 start 4 task 1.0 in stage1.0 finished. 5 task 1.0 in stage1.1 failed with TaskCommitDenied Exception, then retry forever. ## How was this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) You can merge this pull request into a Git repository by running: $ git pull https://github.com/shenh062326/spark SPARK-16709 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14557.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #14557 ---- commit 1a1ea2f598e7db4ab1b856b420dca36b796c2a1c Author: hongshen <shenh062...@126.com> Date: 2016-08-09T06:44:14Z Kill the running task if stage failed. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org