{"action":"created","comment":{"url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/comments/73998241","id":73998241,"diff_hunk":"@@ -81,34 +27,84 @@ def decrement(self):\n             self.cv.notify()\n \n \n-class _Exhibitor:\n-    def __init__(self, hosts, port, prefix):\n-        self.prefix = prefix\n+class SlowlyUpdatedCache(object):","path":"bubuku/zookeeper/__init__.py","position":77,"original_position":77,"commit_id":"f79529dd0ff768692897bfaade45aeb53eafff66","original_commit_id":"f79529dd0ff768692897bfaade45aeb53eafff66","user":{"login":"v-stepanov","id":13309177,"avatar_url":"https://avatars.githubusercontent.com/u/13309177?v=3","gravatar_id":"","url":"https://api.github.com/users/v-stepanov","html_url":"https://github.com/v-stepanov","followers_url":"https://api.github.com/users/v-stepanov/followers","following_url":"https://api.github.com/users/v-stepanov/following{/other_user}","gists_url":"https://api.github.com/users/v-stepanov/gists{/gist_id}","starred_url":"https://api.github.com/users/v-stepanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-stepanov/subscriptions","organizations_url":"https://api.github.com/users/v-stepanov/orgs","repos_url":"https://api.github.com/users/v-stepanov/repos","events_url":"https://api.github.com/users/v-stepanov/events{/privacy}","received_events_url":"https://api.github.com/users/v-stepanov/received_events","type":"User","site_admin":false},"body":"you like to write caches :-D","created_at":"2016-08-09T05:00:03Z","updated_at":"2016-08-09T05:00:03Z","html_url":"https://github.com/zalando-incubator/bubuku/pull/32#discussion_r73998241","pull_request_url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/comments/73998241"},"html":{"href":"https://github.com/zalando-incubator/bubuku/pull/32#discussion_r73998241"},"pull_request":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32","id":80425052,"html_url":"https://github.com/zalando-incubator/bubuku/pull/32","diff_url":"https://github.com/zalando-incubator/bubuku/pull/32.diff","patch_url":"https://github.com/zalando-incubator/bubuku/pull/32.patch","issue_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues/32","number":32,"state":"closed","locked":false,"title":"Implement slow refresh of exhibitors","user":{"login":"antban","id":2656223,"avatar_url":"https://avatars.githubusercontent.com/u/2656223?v=3","gravatar_id":"","url":"https://api.github.com/users/antban","html_url":"https://github.com/antban","followers_url":"https://api.github.com/users/antban/followers","following_url":"https://api.github.com/users/antban/following{/other_user}","gists_url":"https://api.github.com/users/antban/gists{/gist_id}","starred_url":"https://api.github.com/users/antban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antban/subscriptions","organizations_url":"https://api.github.com/users/antban/orgs","repos_url":"https://api.github.com/users/antban/repos","events_url":"https://api.github.com/users/antban/events{/privacy}","received_events_url":"https://api.github.com/users/antban/received_events","type":"User","site_admin":false},"body":"The problem is that sometimes exhibitor notifies about changes in zookeeper list.\r\nBut sometimes it's not the real change - It's just problem in network connection and so on.\r\n\r\nIn this pr check for changes is performed every 30 seconds, but real update will be made only if exhibitor connection is stable for more than 180 seconds (numbers are taken from logs of exhibitor/bubuku).","created_at":"2016-08-08T10:07:24Z","updated_at":"2016-08-09T05:00:03Z","closed_at":"2016-08-08T10:13:33Z","merged_at":"2016-08-08T10:13:33Z","merge_commit_sha":"f20153721e4e5f0092fe5ff191759faa72026f8e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32/commits","review_comments_url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32/comments","review_comment_url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues/32/comments","statuses_url":"https://api.github.com/repos/zalando-incubator/bubuku/statuses/f79529dd0ff768692897bfaade45aeb53eafff66","head":{"label":"zalando-incubator:I29","ref":"I29","sha":"f79529dd0ff768692897bfaade45aeb53eafff66","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":64120851,"name":"bubuku","full_name":"zalando-incubator/bubuku","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/bubuku","description":null,"fork":false,"url":"https://api.github.com/repos/zalando-incubator/bubuku","forks_url":"https://api.github.com/repos/zalando-incubator/bubuku/forks","keys_url":"https://api.github.com/repos/zalando-incubator/bubuku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/bubuku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/bubuku/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/bubuku/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/bubuku/events","assignees_url":"https://api.github.com/repos/zalando-incubator/bubuku/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/bubuku/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/bubuku/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/bubuku/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/bubuku/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/bubuku/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/bubuku/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/bubuku/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/bubuku/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/bubuku/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/bubuku/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/bubuku/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/bubuku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/bubuku/merges","archive_url":"https://api.github.com/repos/zalando-incubator/bubuku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/bubuku/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/bubuku/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/bubuku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/bubuku/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/bubuku/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/bubuku/deployments","created_at":"2016-07-25T09:18:17Z","updated_at":"2016-08-06T19:41:05Z","pushed_at":"2016-08-08T16:41:46Z","git_url":"git://github.com/zalando-incubator/bubuku.git","ssh_url":"git@github.com:zalando-incubator/bubuku.git","clone_url":"https://github.com/zalando-incubator/bubuku.git","svn_url":"https://github.com/zalando-incubator/bubuku","homepage":null,"size":128,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"zalando-incubator:master","ref":"master","sha":"ef2dc75f1d631c379fa293d4ae25ffcb1bb1adbf","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":64120851,"name":"bubuku","full_name":"zalando-incubator/bubuku","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/bubuku","description":null,"fork":false,"url":"https://api.github.com/repos/zalando-incubator/bubuku","forks_url":"https://api.github.com/repos/zalando-incubator/bubuku/forks","keys_url":"https://api.github.com/repos/zalando-incubator/bubuku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/bubuku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/bubuku/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/bubuku/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/bubuku/events","assignees_url":"https://api.github.com/repos/zalando-incubator/bubuku/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/bubuku/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/bubuku/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/bubuku/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/bubuku/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/bubuku/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/bubuku/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/bubuku/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/bubuku/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/bubuku/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/bubuku/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/bubuku/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/bubuku/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/bubuku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/bubuku/merges","archive_url":"https://api.github.com/repos/zalando-incubator/bubuku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/bubuku/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/bubuku/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/bubuku/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/bubuku/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/bubuku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/bubuku/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/bubuku/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/bubuku/deployments","created_at":"2016-07-25T09:18:17Z","updated_at":"2016-08-06T19:41:05Z","pushed_at":"2016-08-08T16:41:46Z","git_url":"git://github.com/zalando-incubator/bubuku.git","ssh_url":"git@github.com:zalando-incubator/bubuku.git","clone_url":"https://github.com/zalando-incubator/bubuku.git","svn_url":"https://github.com/zalando-incubator/bubuku","homepage":null,"size":128,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32"},"html":{"href":"https://github.com/zalando-incubator/bubuku/pull/32"},"issue":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/issues/32"},"comments":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/zalando-incubator/bubuku/statuses/f79529dd0ff768692897bfaade45aeb53eafff66"}}}}
{"actor":{"display_login":"v-stepanov"}}