{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5492","labels_url":"https://api.github.com/repos/apache/spark/issues/5492/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5492/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5492/events","html_url":"https://github.com/apache/spark/pull/5492","id":68096989,"number":5492,"title":"SPARK-4783 [CORE] System.exit() calls in SparkContext disrupt applications embedding Spark","user":{"login":"srowen","id":822522,"avatar_url":"https://avatars.githubusercontent.com/u/822522?v=3","gravatar_id":"","url":"https://api.github.com/users/srowen","html_url":"https://github.com/srowen","followers_url":"https://api.github.com/users/srowen/followers","following_url":"https://api.github.com/users/srowen/following{/other_user}","gists_url":"https://api.github.com/users/srowen/gists{/gist_id}","starred_url":"https://api.github.com/users/srowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srowen/subscriptions","organizations_url":"https://api.github.com/users/srowen/orgs","repos_url":"https://api.github.com/users/srowen/repos","events_url":"https://api.github.com/users/srowen/events{/privacy}","received_events_url":"https://api.github.com/users/srowen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-13T13:31:32Z","updated_at":"2015-04-15T17:15:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5492","html_url":"https://github.com/apache/spark/pull/5492","diff_url":"https://github.com/apache/spark/pull/5492.diff","patch_url":"https://github.com/apache/spark/pull/5492.patch"},"body":"Avoid `System.exit(1)` in `TaskSchedulerImpl` and convert to `SparkException`; ensure scheduler calls `sc.stop()` even when this exception is thrown.\r\n\r\nCC @mateiz @aarondav as those who may have last touched this code."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/93490325","html_url":"https://github.com/apache/spark/pull/5492#issuecomment-93490325","issue_url":"https://api.github.com/repos/apache/spark/issues/5492","id":93490325,"user":{"login":"sryza","id":654855,"avatar_url":"https://avatars.githubusercontent.com/u/654855?v=3","gravatar_id":"","url":"https://api.github.com/users/sryza","html_url":"https://github.com/sryza","followers_url":"https://api.github.com/users/sryza/followers","following_url":"https://api.github.com/users/sryza/following{/other_user}","gists_url":"https://api.github.com/users/sryza/gists{/gist_id}","starred_url":"https://api.github.com/users/sryza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sryza/subscriptions","organizations_url":"https://api.github.com/users/sryza/orgs","repos_url":"https://api.github.com/users/sryza/repos","events_url":"https://api.github.com/users/sryza/events{/privacy}","received_events_url":"https://api.github.com/users/sryza/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T17:15:05Z","updated_at":"2015-04-15T17:15:05Z","body":"This seems to only get called from two places:\r\n* In standalone mode when the driver fails to communicate with the master, or the master sends a message to kill the driver.  In these cases, sc.stop is called after.\r\n* In Mesos mode when Mesos sends a error message to the driver.\r\n\r\nWould it maybe make sense to add a call to sc.stop in the Mesos case for consistency?"}}