{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/21758","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/21758/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/21758/comments","events_url":"https://api.github.com/repos/apache/spark/issues/21758/events","html_url":"https://github.com/apache/spark/pull/21758","id":340885441,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMTkwNDMx","number":21758,"title":"[SPARK-24795][CORE] Implement barrier execution mode","user":{"login":"jiangxb1987","id":4784782,"node_id":"MDQ6VXNlcjQ3ODQ3ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/4784782?v=4","gravatar_id":"","url":"https://api.github.com/users/jiangxb1987","html_url":"https://github.com/jiangxb1987","followers_url":"https://api.github.com/users/jiangxb1987/followers","following_url":"https://api.github.com/users/jiangxb1987/following{/other_user}","gists_url":"https://api.github.com/users/jiangxb1987/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangxb1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangxb1987/subscriptions","organizations_url":"https://api.github.com/users/jiangxb1987/orgs","repos_url":"https://api.github.com/users/jiangxb1987/repos","events_url":"https://api.github.com/users/jiangxb1987/events{/privacy}","received_events_url":"https://api.github.com/users/jiangxb1987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-13T05:23:47Z","updated_at":"2018-07-19T15:22:28Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/21758","html_url":"https://github.com/apache/spark/pull/21758","diff_url":"https://github.com/apache/spark/pull/21758.diff","patch_url":"https://github.com/apache/spark/pull/21758.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nPropose new APIs and modify job/task scheduling to support barrier execution mode, which requires all tasks in a same barrier stage start at the same time, and retry all tasks in case some tasks fail in the middle. The barrier execution mode is useful for some ML/DL workloads.\r\n\r\nThe proposed API changes include:\r\n\r\n- `RDDBarrier` that marks an RDD as barrier (Spark must launch all the tasks together for the current stage).\r\n- `BarrierTaskContext` that support global sync of all tasks in a barrier stage, and provide extra `BarrierTaskInfo`s.\r\n\r\nIn DAGScheduler, we retry all tasks of a barrier stage in case some tasks fail in the middle, this is achieved by unregistering map outputs for a shuffleId (for ShuffleMapStage) or clear the finished partitions in an active job (for ResultStage).\r\n\r\n## How was this patch tested?\r\n\r\nAdd `RDDBarrierSuite` to ensure we convert RDDs correctly;\r\nAdd new test cases in `DAGSchedulerSuite` to ensure we do task scheduling correctly;\r\nAdd new test cases in `SparkContextSuite` to ensure the barrier execution mode actually works (both under local mode and local cluster mode).\r\nAdd new test cases in `TaskSchedulerImplSuite` to ensure we schedule tasks for barrier taskSet together."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/406315348","html_url":"https://github.com/apache/spark/pull/21758#issuecomment-406315348","issue_url":"https://api.github.com/repos/apache/spark/issues/21758","id":406315348,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjMxNTM0OA==","user":{"login":"AmplabJenkins","id":4031291,"node_id":"MDQ6VXNlcjQwMzEyOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","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":"2018-07-19T15:22:28Z","updated_at":"2018-07-19T15:22:28Z","author_association":"NONE","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}