{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/574","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/574/comments","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/574/events","html_url":"https://github.com/apache/incubator-zeppelin/pull/574","id":124010484,"number":574,"title":"[ZEPPELIN-535] \"Scheduler already terminated\" occurs when RemoteInterpreter.close() doesn't succeed","user":{"login":"Leemoonsoo","id":1540981,"avatar_url":"https://avatars.githubusercontent.com/u/1540981?v=3","gravatar_id":"","url":"https://api.github.com/users/Leemoonsoo","html_url":"https://github.com/Leemoonsoo","followers_url":"https://api.github.com/users/Leemoonsoo/followers","following_url":"https://api.github.com/users/Leemoonsoo/following{/other_user}","gists_url":"https://api.github.com/users/Leemoonsoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Leemoonsoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leemoonsoo/subscriptions","organizations_url":"https://api.github.com/users/Leemoonsoo/orgs","repos_url":"https://api.github.com/users/Leemoonsoo/repos","events_url":"https://api.github.com/users/Leemoonsoo/events{/privacy}","received_events_url":"https://api.github.com/users/Leemoonsoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T03:06:20Z","updated_at":"2015-12-28T04:40:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/574","html_url":"https://github.com/apache/incubator-zeppelin/pull/574","diff_url":"https://github.com/apache/incubator-zeppelin/pull/574.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/574.patch"},"body":"### What is this PR for?\r\nFix the exception \"Scheduler already terminated\" when remove interpreter close() fails\r\n\r\n### What type of PR is it?\r\nBug Fix\r\n\r\n### Is there a relevant Jira issue?\r\nhttps://issues.apache.org/jira/browse/ZEPPELIN-535\r\n\r\n### How should this be tested?\r\nModify any interpreter to throw exception on close() call.\r\nAnd try to use it after restart the interpreter.\r\n\r\n### Screenshots (if appropriate)\r\n\r\n### Questions:\r\n* Does the licenses files need update? no\r\n* Is there breaking changes for older versions? no\r\n* Does this needs documentation? no"},"comment":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments/167483812","html_url":"https://github.com/apache/incubator-zeppelin/pull/574#issuecomment-167483812","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/574","id":167483812,"user":{"login":"Leemoonsoo","id":1540981,"avatar_url":"https://avatars.githubusercontent.com/u/1540981?v=3","gravatar_id":"","url":"https://api.github.com/users/Leemoonsoo","html_url":"https://github.com/Leemoonsoo","followers_url":"https://api.github.com/users/Leemoonsoo/followers","following_url":"https://api.github.com/users/Leemoonsoo/following{/other_user}","gists_url":"https://api.github.com/users/Leemoonsoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Leemoonsoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leemoonsoo/subscriptions","organizations_url":"https://api.github.com/users/Leemoonsoo/orgs","repos_url":"https://api.github.com/users/Leemoonsoo/repos","events_url":"https://api.github.com/users/Leemoonsoo/events{/privacy}","received_events_url":"https://api.github.com/users/Leemoonsoo/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T04:40:44Z","updated_at":"2015-12-28T04:40:44Z","body":"@HeartSaVioR now ci is passing\r\n\r\nThis PR make sure RemoteInterpreter.close() call InterpreterProcess.dereference().\r\nAlso simplify code by let InterpreterGroup keep reference to InterpreterProcess instead of `static Map<String, RemoteInterpreterProcess> interpreterGroupReference`."}}