GitHub user scwf opened a pull request:
https://github.com/apache/spark/pull/15213
[SPARK-17644] [CORE] Fix the race condition when DAGScheduler handle the
FetchFailed event
## What changes were proposed in this pull request?
| Time |Thread 1 , Job1 | Thread 2 , Job2 |
|:-------------:|:-------------:|:-----:|
| 1 | abort stage due to FetchFailed | |
| 2 | failedStages += failedStage | |
| 3 | | task failed due to FetchFailed |
then job2 of thread2 never resubmit the failed stage and hang.
we should not add failedStages when abort stage.
## How was this patch tested?
add unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/KirinKing/spark dag-resubmit
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15213.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 #15213
----
commit 8e667f532fa4509386ff6a6173b75a8e24cab40a
Author: w00228970 <[email protected]>
Date: 2016-09-23T07:17:46Z
test case
commit 2bfa05b172c68d6aa52e66359e83e2e7c6033662
Author: w00228970 <[email protected]>
Date: 2016-09-23T07:30:15Z
The failed stage never resubmitted
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]