{"action":"created","issue":{"url":"https://api.github.com/repos/apache/flink/issues/1009","labels_url":"https://api.github.com/repos/apache/flink/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/apache/flink/issues/1009/comments","events_url":"https://api.github.com/repos/apache/flink/issues/1009/events","html_url":"https://github.com/apache/flink/pull/1009","id":100452922,"number":1009,"title":"[FLINK-2512]Add client.close() before throw RuntimeException","user":{"login":"ffbin","id":13081808,"avatar_url":"https://avatars.githubusercontent.com/u/13081808?v=3","gravatar_id":"","url":"https://api.github.com/users/ffbin","html_url":"https://github.com/ffbin","followers_url":"https://api.github.com/users/ffbin/followers","following_url":"https://api.github.com/users/ffbin/following{/other_user}","gists_url":"https://api.github.com/users/ffbin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffbin/subscriptions","organizations_url":"https://api.github.com/users/ffbin/orgs","repos_url":"https://api.github.com/users/ffbin/repos","events_url":"https://api.github.com/users/ffbin/events{/privacy}","received_events_url":"https://api.github.com/users/ffbin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-12T02:39:22Z","updated_at":"2015-08-13T02:18:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/1009","html_url":"https://github.com/apache/flink/pull/1009","diff_url":"https://github.com/apache/flink/pull/1009.diff","patch_url":"https://github.com/apache/flink/pull/1009.patch"},"body":"In line 129, it close client in finally{} before throw exception.\r\nBut in line 105, it throw exception without close client.\r\nSo I think it is better to close client before throw RuntimeException."},"comment":{"url":"https://api.github.com/repos/apache/flink/issues/comments/130509029","html_url":"https://github.com/apache/flink/pull/1009#issuecomment-130509029","issue_url":"https://api.github.com/repos/apache/flink/issues/1009","id":130509029,"user":{"login":"ffbin","id":13081808,"avatar_url":"https://avatars.githubusercontent.com/u/13081808?v=3","gravatar_id":"","url":"https://api.github.com/users/ffbin","html_url":"https://github.com/ffbin","followers_url":"https://api.github.com/users/ffbin/followers","following_url":"https://api.github.com/users/ffbin/following{/other_user}","gists_url":"https://api.github.com/users/ffbin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffbin/subscriptions","organizations_url":"https://api.github.com/users/ffbin/orgs","repos_url":"https://api.github.com/users/ffbin/repos","events_url":"https://api.github.com/users/ffbin/events{/privacy}","received_events_url":"https://api.github.com/users/ffbin/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T02:18:50Z","updated_at":"2015-08-13T02:18:50Z","body":"@uce @hsaputra  Thanks. I have move the try up and rely on finally to close the client."}}