{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/10794","labels_url":"https://api.github.com/repos/apache/spark/issues/10794/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/10794/comments","events_url":"https://api.github.com/repos/apache/spark/issues/10794/events","html_url":"https://github.com/apache/spark/pull/10794","id":127093544,"number":10794,"title":"initialize executorIdCounter after ApplicationMaster killed for max n…","user":{"login":"zhonghaihua","id":4409429,"avatar_url":"https://avatars.githubusercontent.com/u/4409429?v=3","gravatar_id":"","url":"https://api.github.com/users/zhonghaihua","html_url":"https://github.com/zhonghaihua","followers_url":"https://api.github.com/users/zhonghaihua/followers","following_url":"https://api.github.com/users/zhonghaihua/following{/other_user}","gists_url":"https://api.github.com/users/zhonghaihua/gists{/gist_id}","starred_url":"https://api.github.com/users/zhonghaihua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhonghaihua/subscriptions","organizations_url":"https://api.github.com/users/zhonghaihua/orgs","repos_url":"https://api.github.com/users/zhonghaihua/repos","events_url":"https://api.github.com/users/zhonghaihua/events{/privacy}","received_events_url":"https://api.github.com/users/zhonghaihua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-17T12:55:53Z","updated_at":"2016-01-17T12:57:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10794","html_url":"https://github.com/apache/spark/pull/10794","diff_url":"https://github.com/apache/spark/pull/10794.diff","patch_url":"https://github.com/apache/spark/pull/10794.patch"},"body":"Currently, when max number of executor failures reached the `maxNumExecutorFailures`, `ApplicationMaster` will be killed and re-register another one.This time, `YarnAllocator` will be created a new instance.\r\nBut, the value of property `executorIdCounter` in `YarnAllocator` will reset to `0`. Then the Id of new executor will starting from `1`. This will confuse with the executor has already created before, which will cause FetchFailedException.\r\nThis PR introduce a mechanism to initialize `executorIdCounter` after `ApplicationMaster` killed."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/172322701","html_url":"https://github.com/apache/spark/pull/10794#issuecomment-172322701","issue_url":"https://api.github.com/repos/apache/spark/issues/10794","id":172322701,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T12:57:11Z","updated_at":"2016-01-17T12:57:11Z","body":"Can one of the admins verify this patch?"}}