{"action":"created","issue":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/199","labels_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/199/comments","events_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/199/events","html_url":"https://github.com/spark-jobserver/spark-jobserver/pull/199","id":98953671,"number":199,"title":"When submit a job, if sparkcontext not alive, send ContextStopped message to LocalContextSupervisorActor to do the sc clean up job.","user":{"login":"litao-buptsse","id":3584226,"avatar_url":"https://avatars.githubusercontent.com/u/3584226?v=3","gravatar_id":"","url":"https://api.github.com/users/litao-buptsse","html_url":"https://github.com/litao-buptsse","followers_url":"https://api.github.com/users/litao-buptsse/followers","following_url":"https://api.github.com/users/litao-buptsse/following{/other_user}","gists_url":"https://api.github.com/users/litao-buptsse/gists{/gist_id}","starred_url":"https://api.github.com/users/litao-buptsse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litao-buptsse/subscriptions","organizations_url":"https://api.github.com/users/litao-buptsse/orgs","repos_url":"https://api.github.com/users/litao-buptsse/repos","events_url":"https://api.github.com/users/litao-buptsse/events{/privacy}","received_events_url":"https://api.github.com/users/litao-buptsse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-04T12:13:05Z","updated_at":"2015-08-05T14:00:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/199","html_url":"https://github.com/spark-jobserver/spark-jobserver/pull/199","diff_url":"https://github.com/spark-jobserver/spark-jobserver/pull/199.diff","patch_url":"https://github.com/spark-jobserver/spark-jobserver/pull/199.patch"},"body":"When submit a job, if sparkcontext not alive (e.g. yarn application -kill $appId), the context meta is still exist in jobserver. So when I want to recreate a context, the jobserver tell me the context is existed.\r\n\r\nSo I make this PR, When submit a job, if sparkcontext not alive, send ContextStopped message to LocalContextSupervisorActor to do the sc clean up job."},"comment":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/comments/128006076","html_url":"https://github.com/spark-jobserver/spark-jobserver/pull/199#issuecomment-128006076","issue_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/199","id":128006076,"user":{"login":"litao-buptsse","id":3584226,"avatar_url":"https://avatars.githubusercontent.com/u/3584226?v=3","gravatar_id":"","url":"https://api.github.com/users/litao-buptsse","html_url":"https://github.com/litao-buptsse","followers_url":"https://api.github.com/users/litao-buptsse/followers","following_url":"https://api.github.com/users/litao-buptsse/following{/other_user}","gists_url":"https://api.github.com/users/litao-buptsse/gists{/gist_id}","starred_url":"https://api.github.com/users/litao-buptsse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litao-buptsse/subscriptions","organizations_url":"https://api.github.com/users/litao-buptsse/orgs","repos_url":"https://api.github.com/users/litao-buptsse/repos","events_url":"https://api.github.com/users/litao-buptsse/events{/privacy}","received_events_url":"https://api.github.com/users/litao-buptsse/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T14:00:45Z","updated_at":"2015-08-05T14:00:45Z","body":"@velvia Nice! Your solution works fine for me. I add a new commit litao-buptsse@632eb29 following your suggestion."}}