{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/473","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/473/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/473/events","html_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/473","id":60195674,"number":473,"title":"Fixed #452 - Error after close DB client","user":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"pasin","id":801454,"avatar_url":"https://avatars.githubusercontent.com/u/801454?v=3","gravatar_id":"","url":"https://api.github.com/users/pasin","html_url":"https://github.com/pasin","followers_url":"https://api.github.com/users/pasin/followers","following_url":"https://api.github.com/users/pasin/following{/other_user}","gists_url":"https://api.github.com/users/pasin/gists{/gist_id}","starred_url":"https://api.github.com/users/pasin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasin/subscriptions","organizations_url":"https://api.github.com/users/pasin/orgs","repos_url":"https://api.github.com/users/pasin/repos","events_url":"https://api.github.com/users/pasin/events{/privacy}","received_events_url":"https://api.github.com/users/pasin/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-07T07:29:08Z","updated_at":"2015-03-11T19:40:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/473","html_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/473","diff_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/473.diff","patch_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/473.patch"},"body":"Fixed #452 - Error after close DB client\r\n\r\nProblem:\r\n- Executor which is used in Manager and ReplicatorInternal caused thread leak, it requires to call shutdown() method.\r\n\r\nSolution:\r\n- Shuts down Executor Thread which is created by Manager\r\n- Shuts down Executor Thread which is created by Replicator\r\n- Wait all replicators become STOPPED state in Database.close()\r\n- Implements two phases Executor shutdown\r\n- Applied code style to Manager.java and Utils.java"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments/78353989","html_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/473#issuecomment-78353989","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/473","id":78353989,"user":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T19:40:33Z","updated_at":"2015-03-11T19:40:33Z","body":"I believe unit test failure on Jenkins could be caused by pointing old CBL java core submodule. I updated submodule, and restart Jenkins: http://mobile.jenkins.couchbase.com/job/couchbase-lite-android-build/67/"}}