{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8938","labels_url":"https://api.github.com/repos/apache/spark/issues/8938/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8938/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8938/events","html_url":"https://github.com/apache/spark/pull/8938","id":108870734,"number":8938,"title":"[SPARK-10851][SPARKR] Exception not failing R applications (in yarn cluster mode)","user":{"login":"sun-rui","id":2528327,"avatar_url":"https://avatars.githubusercontent.com/u/2528327?v=3","gravatar_id":"","url":"https://api.github.com/users/sun-rui","html_url":"https://github.com/sun-rui","followers_url":"https://api.github.com/users/sun-rui/followers","following_url":"https://api.github.com/users/sun-rui/following{/other_user}","gists_url":"https://api.github.com/users/sun-rui/gists{/gist_id}","starred_url":"https://api.github.com/users/sun-rui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sun-rui/subscriptions","organizations_url":"https://api.github.com/users/sun-rui/orgs","repos_url":"https://api.github.com/users/sun-rui/repos","events_url":"https://api.github.com/users/sun-rui/events{/privacy}","received_events_url":"https://api.github.com/users/sun-rui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-29T13:38:15Z","updated_at":"2015-09-30T18:01:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8938","html_url":"https://github.com/apache/spark/pull/8938","diff_url":"https://github.com/apache/spark/pull/8938.diff","patch_url":"https://github.com/apache/spark/pull/8938.patch"},"body":"The YARN backend doesn't like when user code calls System.exit, since it cannot know the exit status and thus cannot set an appropriate final status for the application.\r\n\r\nThis PR remove the usage of system.exit to exit the RRunner. Instead, when the R process running an SparkR script returns an exit code other than 0, throws SparkUserAppException which will be caught by ApplicationMaster and ApplicationMaster knows it failed. For other failures, throws SparkException."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/144492210","html_url":"https://github.com/apache/spark/pull/8938#issuecomment-144492210","issue_url":"https://api.github.com/repos/apache/spark/issues/8938","id":144492210,"user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T18:01:31Z","updated_at":"2015-09-30T18:01:31Z","body":"OK, merging into master, thanks."}}