{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20930","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20930/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20930/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20930/events","html_url":"https://github.com/apache/spark/pull/20930","id":309619229,"number":20930,"title":"[SPARK-23811][Core] FetchFailed comes before Success of same task will cause child stage never succeed","user":{"login":"xuanyuanking","id":4833765,"avatar_url":"https://avatars0.githubusercontent.com/u/4833765?v=4","gravatar_id":"","url":"https://api.github.com/users/xuanyuanking","html_url":"https://github.com/xuanyuanking","followers_url":"https://api.github.com/users/xuanyuanking/followers","following_url":"https://api.github.com/users/xuanyuanking/following{/other_user}","gists_url":"https://api.github.com/users/xuanyuanking/gists{/gist_id}","starred_url":"https://api.github.com/users/xuanyuanking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuanyuanking/subscriptions","organizations_url":"https://api.github.com/users/xuanyuanking/orgs","repos_url":"https://api.github.com/users/xuanyuanking/repos","events_url":"https://api.github.com/users/xuanyuanking/events{/privacy}","received_events_url":"https://api.github.com/users/xuanyuanking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-29T04:53:25Z","updated_at":"2018-03-30T07:48:41Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20930","html_url":"https://github.com/apache/spark/pull/20930","diff_url":"https://github.com/apache/spark/pull/20930.diff","patch_url":"https://github.com/apache/spark/pull/20930.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis is a bug caused by abnormal scenario describe below:\r\n\r\n1. ShuffleMapTask 1.0 running, this task will fetch data from ExecutorA\r\n2. ExecutorA Lost, trigger `mapOutputTracker.removeOutputsOnExecutor(execId)` , shuffleStatus changed.\r\n3. Speculative ShuffleMapTask 1.1 start, got a FetchFailed immediately.\r\n4. ShuffleMapTask 1.0 finally succeed, but because of 1.1's FetchFailed, stage still mark as failed stage.\r\n5. ShuffleMapTask 1 is the last task of its stage, so this stage will never succeed because of there's no missing task DAGScheduler can get.\r\n\r\nI apply the detailed screenshots in jira comments.\r\n\r\n## How was this patch tested?\r\n\r\nAdd a new UT in `TaskSetManagerSuite`\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/377469535","html_url":"https://github.com/apache/spark/pull/20930#issuecomment-377469535","issue_url":"https://api.github.com/repos/apache/spark/issues/20930","id":377469535,"user":{"login":"cloud-fan","id":3182036,"avatar_url":"https://avatars3.githubusercontent.com/u/3182036?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-fan","html_url":"https://github.com/cloud-fan","followers_url":"https://api.github.com/users/cloud-fan/followers","following_url":"https://api.github.com/users/cloud-fan/following{/other_user}","gists_url":"https://api.github.com/users/cloud-fan/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-fan/subscriptions","organizations_url":"https://api.github.com/users/cloud-fan/orgs","repos_url":"https://api.github.com/users/cloud-fan/repos","events_url":"https://api.github.com/users/cloud-fan/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-fan/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T07:48:41Z","updated_at":"2018-03-30T07:48:41Z","author_association":"CONTRIBUTOR","body":"What happened to `ShuffleMapTask 1.0` exactly? There are 2 cases: the stage is marked as failed, but not be resubmitted yet, or the stage has been resubmitted, or the stage is aborted."}}
{"actor":{"display_login":"cloud-fan"}}