{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15775","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15775/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15775/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15775/events","html_url":"https://github.com/apache/spark/pull/15775","id":187450034,"number":15775,"title":"[SPARK-18280][Core]Fix potential deadlock in `StandaloneSchedulerBackend.dead`","user":{"login":"zsxwing","id":1000778,"avatar_url":"https://avatars.githubusercontent.com/u/1000778?v=3","gravatar_id":"","url":"https://api.github.com/users/zsxwing","html_url":"https://github.com/zsxwing","followers_url":"https://api.github.com/users/zsxwing/followers","following_url":"https://api.github.com/users/zsxwing/following{/other_user}","gists_url":"https://api.github.com/users/zsxwing/gists{/gist_id}","starred_url":"https://api.github.com/users/zsxwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsxwing/subscriptions","organizations_url":"https://api.github.com/users/zsxwing/orgs","repos_url":"https://api.github.com/users/zsxwing/repos","events_url":"https://api.github.com/users/zsxwing/events{/privacy}","received_events_url":"https://api.github.com/users/zsxwing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T22:15:05Z","updated_at":"2016-11-05T01:16:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15775","html_url":"https://github.com/apache/spark/pull/15775","diff_url":"https://github.com/apache/spark/pull/15775.diff","patch_url":"https://github.com/apache/spark/pull/15775.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n\"StandaloneSchedulerBackend.dead\" is called in a RPC thread, so it should not call \"SparkContext.stop\" in the same thread. \"SparkContext.stop\" will block until all RPC threads exit, if it's called inside a RPC thread, it will be dead-lock.\r\n\r\nThis PR launches a new thread to stop SparkContext to fix the deadlock.\r\n\r\n## How was this patch tested?\r\n\r\nJenkins"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/258581706","html_url":"https://github.com/apache/spark/pull/15775#issuecomment-258581706","issue_url":"https://api.github.com/repos/apache/spark/issues/15775","id":258581706,"user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T01:16:41Z","updated_at":"2016-11-05T01:16:41Z","body":"Yea I think that's a good idea ...\r\n"}}
{"actor":{"display_login":"rxin"}}