{"action":"opened","number":358,"pull_request":{"url":"https://api.github.com/repos/python-zk/kazoo/pulls/358","id":44657089,"html_url":"https://github.com/python-zk/kazoo/pull/358","diff_url":"https://github.com/python-zk/kazoo/pull/358.diff","patch_url":"https://github.com/python-zk/kazoo/pull/358.patch","issue_url":"https://api.github.com/repos/python-zk/kazoo/issues/358","number":358,"state":"open","locked":false,"title":"Fix handling of retry failures in Lock.acquire","user":{"login":"kormat","id":6919822,"avatar_url":"https://avatars.githubusercontent.com/u/6919822?v=3","gravatar_id":"","url":"https://api.github.com/users/kormat","html_url":"https://github.com/kormat","followers_url":"https://api.github.com/users/kormat/followers","following_url":"https://api.github.com/users/kormat/following{/other_user}","gists_url":"https://api.github.com/users/kormat/gists{/gist_id}","starred_url":"https://api.github.com/users/kormat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kormat/subscriptions","organizations_url":"https://api.github.com/users/kormat/orgs","repos_url":"https://api.github.com/users/kormat/repos","events_url":"https://api.github.com/users/kormat/events{/privacy}","received_events_url":"https://api.github.com/users/kormat/received_events","type":"User","site_admin":false},"body":"(Fixes https://github.com/python-zk/kazoo/issues/288)\r\n\r\n- Make sure that self.node always exists.\r\n- Use _best_effort_cleanup() instead of _delete_node() when we didn't\r\n  get the lock.\r\n- Make RetryFailedError use the existing cleanup code.\r\n- Make _best_effort_cleanup use self.node if it's set, and fall back to\r\n  _find_node otherwise.","created_at":"2015-09-10T11:39:38Z","updated_at":"2015-09-10T11:39:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-zk/kazoo/pulls/358/commits","review_comments_url":"https://api.github.com/repos/python-zk/kazoo/pulls/358/comments","review_comment_url":"https://api.github.com/repos/python-zk/kazoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-zk/kazoo/issues/358/comments","statuses_url":"https://api.github.com/repos/python-zk/kazoo/statuses/a96b1e45f88194d8e8200520dbb0d0c7d07dd0e4","head":{"label":"kormat:lock_failures","ref":"lock_failures","sha":"a96b1e45f88194d8e8200520dbb0d0c7d07dd0e4","user":{"login":"kormat","id":6919822,"avatar_url":"https://avatars.githubusercontent.com/u/6919822?v=3","gravatar_id":"","url":"https://api.github.com/users/kormat","html_url":"https://github.com/kormat","followers_url":"https://api.github.com/users/kormat/followers","following_url":"https://api.github.com/users/kormat/following{/other_user}","gists_url":"https://api.github.com/users/kormat/gists{/gist_id}","starred_url":"https://api.github.com/users/kormat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kormat/subscriptions","organizations_url":"https://api.github.com/users/kormat/orgs","repos_url":"https://api.github.com/users/kormat/repos","events_url":"https://api.github.com/users/kormat/events{/privacy}","received_events_url":"https://api.github.com/users/kormat/received_events","type":"User","site_admin":false},"repo":{"id":33673394,"name":"kazoo","full_name":"kormat/kazoo","owner":{"login":"kormat","id":6919822,"avatar_url":"https://avatars.githubusercontent.com/u/6919822?v=3","gravatar_id":"","url":"https://api.github.com/users/kormat","html_url":"https://github.com/kormat","followers_url":"https://api.github.com/users/kormat/followers","following_url":"https://api.github.com/users/kormat/following{/other_user}","gists_url":"https://api.github.com/users/kormat/gists{/gist_id}","starred_url":"https://api.github.com/users/kormat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kormat/subscriptions","organizations_url":"https://api.github.com/users/kormat/orgs","repos_url":"https://api.github.com/users/kormat/repos","events_url":"https://api.github.com/users/kormat/events{/privacy}","received_events_url":"https://api.github.com/users/kormat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kormat/kazoo","description":"Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.","fork":true,"url":"https://api.github.com/repos/kormat/kazoo","forks_url":"https://api.github.com/repos/kormat/kazoo/forks","keys_url":"https://api.github.com/repos/kormat/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kormat/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kormat/kazoo/teams","hooks_url":"https://api.github.com/repos/kormat/kazoo/hooks","issue_events_url":"https://api.github.com/repos/kormat/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/kormat/kazoo/events","assignees_url":"https://api.github.com/repos/kormat/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/kormat/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/kormat/kazoo/tags","blobs_url":"https://api.github.com/repos/kormat/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kormat/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kormat/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kormat/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kormat/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/kormat/kazoo/languages","stargazers_url":"https://api.github.com/repos/kormat/kazoo/stargazers","contributors_url":"https://api.github.com/repos/kormat/kazoo/contributors","subscribers_url":"https://api.github.com/repos/kormat/kazoo/subscribers","subscription_url":"https://api.github.com/repos/kormat/kazoo/subscription","commits_url":"https://api.github.com/repos/kormat/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kormat/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kormat/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kormat/kazoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kormat/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/kormat/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kormat/kazoo/merges","archive_url":"https://api.github.com/repos/kormat/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kormat/kazoo/downloads","issues_url":"https://api.github.com/repos/kormat/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/kormat/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/kormat/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/kormat/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kormat/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/kormat/kazoo/releases{/id}","created_at":"2015-04-09T14:23:44Z","updated_at":"2015-04-28T14:40:55Z","pushed_at":"2015-09-10T11:39:15Z","git_url":"git://github.com/kormat/kazoo.git","ssh_url":"git@github.com:kormat/kazoo.git","clone_url":"https://github.com/kormat/kazoo.git","svn_url":"https://github.com/kormat/kazoo","homepage":"https://kazoo.readthedocs.org","size":3718,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python-zk:master","ref":"master","sha":"9d436602b06fe08c83d7f78986a8dee789153445","user":{"login":"python-zk","id":1731709,"avatar_url":"https://avatars.githubusercontent.com/u/1731709?v=3","gravatar_id":"","url":"https://api.github.com/users/python-zk","html_url":"https://github.com/python-zk","followers_url":"https://api.github.com/users/python-zk/followers","following_url":"https://api.github.com/users/python-zk/following{/other_user}","gists_url":"https://api.github.com/users/python-zk/gists{/gist_id}","starred_url":"https://api.github.com/users/python-zk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-zk/subscriptions","organizations_url":"https://api.github.com/users/python-zk/orgs","repos_url":"https://api.github.com/users/python-zk/repos","events_url":"https://api.github.com/users/python-zk/events{/privacy}","received_events_url":"https://api.github.com/users/python-zk/received_events","type":"Organization","site_admin":false},"repo":{"id":4426689,"name":"kazoo","full_name":"python-zk/kazoo","owner":{"login":"python-zk","id":1731709,"avatar_url":"https://avatars.githubusercontent.com/u/1731709?v=3","gravatar_id":"","url":"https://api.github.com/users/python-zk","html_url":"https://github.com/python-zk","followers_url":"https://api.github.com/users/python-zk/followers","following_url":"https://api.github.com/users/python-zk/following{/other_user}","gists_url":"https://api.github.com/users/python-zk/gists{/gist_id}","starred_url":"https://api.github.com/users/python-zk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-zk/subscriptions","organizations_url":"https://api.github.com/users/python-zk/orgs","repos_url":"https://api.github.com/users/python-zk/repos","events_url":"https://api.github.com/users/python-zk/events{/privacy}","received_events_url":"https://api.github.com/users/python-zk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-zk/kazoo","description":"Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.","fork":false,"url":"https://api.github.com/repos/python-zk/kazoo","forks_url":"https://api.github.com/repos/python-zk/kazoo/forks","keys_url":"https://api.github.com/repos/python-zk/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-zk/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-zk/kazoo/teams","hooks_url":"https://api.github.com/repos/python-zk/kazoo/hooks","issue_events_url":"https://api.github.com/repos/python-zk/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/python-zk/kazoo/events","assignees_url":"https://api.github.com/repos/python-zk/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/python-zk/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/python-zk/kazoo/tags","blobs_url":"https://api.github.com/repos/python-zk/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-zk/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-zk/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-zk/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-zk/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/python-zk/kazoo/languages","stargazers_url":"https://api.github.com/repos/python-zk/kazoo/stargazers","contributors_url":"https://api.github.com/repos/python-zk/kazoo/contributors","subscribers_url":"https://api.github.com/repos/python-zk/kazoo/subscribers","subscription_url":"https://api.github.com/repos/python-zk/kazoo/subscription","commits_url":"https://api.github.com/repos/python-zk/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-zk/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-zk/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-zk/kazoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-zk/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/python-zk/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-zk/kazoo/merges","archive_url":"https://api.github.com/repos/python-zk/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-zk/kazoo/downloads","issues_url":"https://api.github.com/repos/python-zk/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/python-zk/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/python-zk/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/python-zk/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-zk/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/python-zk/kazoo/releases{/id}","created_at":"2012-05-23T23:46:42Z","updated_at":"2015-09-09T21:12:31Z","pushed_at":"2015-08-19T23:34:30Z","git_url":"git://github.com/python-zk/kazoo.git","ssh_url":"git@github.com:python-zk/kazoo.git","clone_url":"https://github.com/python-zk/kazoo.git","svn_url":"https://github.com/python-zk/kazoo","homepage":"https://kazoo.readthedocs.org","size":5840,"stargazers_count":394,"watchers_count":394,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":166,"mirror_url":null,"open_issues_count":80,"forks":166,"open_issues":80,"watchers":394,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-zk/kazoo/pulls/358"},"html":{"href":"https://github.com/python-zk/kazoo/pull/358"},"issue":{"href":"https://api.github.com/repos/python-zk/kazoo/issues/358"},"comments":{"href":"https://api.github.com/repos/python-zk/kazoo/issues/358/comments"},"review_comments":{"href":"https://api.github.com/repos/python-zk/kazoo/pulls/358/comments"},"review_comment":{"href":"https://api.github.com/repos/python-zk/kazoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-zk/kazoo/pulls/358/commits"},"statuses":{"href":"https://api.github.com/repos/python-zk/kazoo/statuses/a96b1e45f88194d8e8200520dbb0d0c7d07dd0e4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":1}}