{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22001","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22001/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22001/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22001/events","html_url":"https://github.com/apache/spark/pull/22001","id":347709751,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjQ1NzAz","number":22001,"title":"[SPARK-24819][CORE] Fail fast when no enough slots to launch the barrier stage on job submitted","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":9,"created_at":"2018-08-05T15:57:54Z","updated_at":"2018-08-09T12:48:35Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22001","html_url":"https://github.com/apache/spark/pull/22001","diff_url":"https://github.com/apache/spark/pull/22001.diff","patch_url":"https://github.com/apache/spark/pull/22001.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nWe shall check whether the barrier stage requires more slots (to be able to launch all tasks in the barrier stage together) than the total number of active slots currently, and fail fast if trying to submit a barrier stage that requires more slots than current total number.\r\n\r\nThis PR proposes to add a new method `getNumSlots()` to try to get the total number of currently active slots in `SchedulerBackend`, support of this new method has been added to all the first-class scheduler backends except `MesosFineGrainedSchedulerBackend`.\r\n\r\n## How was this patch tested?\r\n\r\nAdded new test cases in `BarrierStageOnSubmittedSuite`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/411745543","html_url":"https://github.com/apache/spark/pull/22001#issuecomment-411745543","issue_url":"https://api.github.com/repos/apache/spark/issues/22001","id":411745543,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTc0NTU0Mw==","user":{"login":"SparkQA","id":8108735,"node_id":"MDQ6VXNlcjgxMDg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T12:48:35Z","updated_at":"2018-08-09T12:48:35Z","author_association":"NONE","body":"**[Test build #94491 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/94491/testReport)** for PR 22001 at commit [`825d2d9`](https://github.com/apache/spark/commit/825d2d9e327a706039767f9c40cc357d2e0a0a00)."}}
{"actor":{"display_login":"SparkQA"}}