{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/wooga/locker/pulls/10","id":53391006,"html_url":"https://github.com/wooga/locker/pull/10","diff_url":"https://github.com/wooga/locker/pull/10.diff","patch_url":"https://github.com/wooga/locker/pull/10.patch","issue_url":"https://api.github.com/repos/wooga/locker/issues/10","number":10,"state":"open","locked":false,"title":"Handle locker_expire_db and locker_db being out of sync","user":{"login":"anha0825","id":57395,"avatar_url":"https://avatars.githubusercontent.com/u/57395?v=3","gravatar_id":"","url":"https://api.github.com/users/anha0825","html_url":"https://github.com/anha0825","followers_url":"https://api.github.com/users/anha0825/followers","following_url":"https://api.github.com/users/anha0825/following{/other_user}","gists_url":"https://api.github.com/users/anha0825/gists{/gist_id}","starred_url":"https://api.github.com/users/anha0825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anha0825/subscriptions","organizations_url":"https://api.github.com/users/anha0825/orgs","repos_url":"https://api.github.com/users/anha0825/repos","events_url":"https://api.github.com/users/anha0825/events{/privacy}","received_events_url":"https://api.github.com/users/anha0825/received_events","type":"User","site_admin":false},"body":"Long overdue pull request for a locker bug found over a year ago.\r\nThis looks like a workaround, but to the best of my memory it didn't seem possible to prevent the locker_expire_db and locker_db inconsistency from appearing.\r\n[This update to locker_db](https://github.com/wooga/locker/blob/4382c005a6ba184e7077e8cfde9fc30f3d9fee04/src/locker.erl#L379) not being followed by un update in expiry_db looks suspicious, but (as far as I remember it) is ok. ","created_at":"2015-12-11T13:14:10Z","updated_at":"2015-12-11T13:14:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wooga/locker/pulls/10/commits","review_comments_url":"https://api.github.com/repos/wooga/locker/pulls/10/comments","review_comment_url":"https://api.github.com/repos/wooga/locker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wooga/locker/issues/10/comments","statuses_url":"https://api.github.com/repos/wooga/locker/statuses/a72f0349a2bfc52c57c7252016646b2df1f68df7","head":{"label":"anha0825:check_delete_lock","ref":"check_delete_lock","sha":"a72f0349a2bfc52c57c7252016646b2df1f68df7","user":{"login":"anha0825","id":57395,"avatar_url":"https://avatars.githubusercontent.com/u/57395?v=3","gravatar_id":"","url":"https://api.github.com/users/anha0825","html_url":"https://github.com/anha0825","followers_url":"https://api.github.com/users/anha0825/followers","following_url":"https://api.github.com/users/anha0825/following{/other_user}","gists_url":"https://api.github.com/users/anha0825/gists{/gist_id}","starred_url":"https://api.github.com/users/anha0825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anha0825/subscriptions","organizations_url":"https://api.github.com/users/anha0825/orgs","repos_url":"https://api.github.com/users/anha0825/repos","events_url":"https://api.github.com/users/anha0825/events{/privacy}","received_events_url":"https://api.github.com/users/anha0825/received_events","type":"User","site_admin":false},"repo":{"id":23569955,"name":"locker","full_name":"anha0825/locker","owner":{"login":"anha0825","id":57395,"avatar_url":"https://avatars.githubusercontent.com/u/57395?v=3","gravatar_id":"","url":"https://api.github.com/users/anha0825","html_url":"https://github.com/anha0825","followers_url":"https://api.github.com/users/anha0825/followers","following_url":"https://api.github.com/users/anha0825/following{/other_user}","gists_url":"https://api.github.com/users/anha0825/gists{/gist_id}","starred_url":"https://api.github.com/users/anha0825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anha0825/subscriptions","organizations_url":"https://api.github.com/users/anha0825/orgs","repos_url":"https://api.github.com/users/anha0825/repos","events_url":"https://api.github.com/users/anha0825/events{/privacy}","received_events_url":"https://api.github.com/users/anha0825/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anha0825/locker","description":"Atomic distributed \"check and set\" for short-lived keys","fork":true,"url":"https://api.github.com/repos/anha0825/locker","forks_url":"https://api.github.com/repos/anha0825/locker/forks","keys_url":"https://api.github.com/repos/anha0825/locker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anha0825/locker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anha0825/locker/teams","hooks_url":"https://api.github.com/repos/anha0825/locker/hooks","issue_events_url":"https://api.github.com/repos/anha0825/locker/issues/events{/number}","events_url":"https://api.github.com/repos/anha0825/locker/events","assignees_url":"https://api.github.com/repos/anha0825/locker/assignees{/user}","branches_url":"https://api.github.com/repos/anha0825/locker/branches{/branch}","tags_url":"https://api.github.com/repos/anha0825/locker/tags","blobs_url":"https://api.github.com/repos/anha0825/locker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anha0825/locker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anha0825/locker/git/refs{/sha}","trees_url":"https://api.github.com/repos/anha0825/locker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anha0825/locker/statuses/{sha}","languages_url":"https://api.github.com/repos/anha0825/locker/languages","stargazers_url":"https://api.github.com/repos/anha0825/locker/stargazers","contributors_url":"https://api.github.com/repos/anha0825/locker/contributors","subscribers_url":"https://api.github.com/repos/anha0825/locker/subscribers","subscription_url":"https://api.github.com/repos/anha0825/locker/subscription","commits_url":"https://api.github.com/repos/anha0825/locker/commits{/sha}","git_commits_url":"https://api.github.com/repos/anha0825/locker/git/commits{/sha}","comments_url":"https://api.github.com/repos/anha0825/locker/comments{/number}","issue_comment_url":"https://api.github.com/repos/anha0825/locker/issues/comments{/number}","contents_url":"https://api.github.com/repos/anha0825/locker/contents/{+path}","compare_url":"https://api.github.com/repos/anha0825/locker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anha0825/locker/merges","archive_url":"https://api.github.com/repos/anha0825/locker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anha0825/locker/downloads","issues_url":"https://api.github.com/repos/anha0825/locker/issues{/number}","pulls_url":"https://api.github.com/repos/anha0825/locker/pulls{/number}","milestones_url":"https://api.github.com/repos/anha0825/locker/milestones{/number}","notifications_url":"https://api.github.com/repos/anha0825/locker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anha0825/locker/labels{/name}","releases_url":"https://api.github.com/repos/anha0825/locker/releases{/id}","created_at":"2014-09-02T07:53:50Z","updated_at":"2014-08-25T16:08:58Z","pushed_at":"2015-12-11T13:04:35Z","git_url":"git://github.com/anha0825/locker.git","ssh_url":"git@github.com:anha0825/locker.git","clone_url":"https://github.com/anha0825/locker.git","svn_url":"https://github.com/anha0825/locker","homepage":"","size":554,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"wooga:master","ref":"master","sha":"2bd92ba1a9395151a80630fcba3fbf6a5627930a","user":{"login":"wooga","id":684356,"avatar_url":"https://avatars.githubusercontent.com/u/684356?v=3","gravatar_id":"","url":"https://api.github.com/users/wooga","html_url":"https://github.com/wooga","followers_url":"https://api.github.com/users/wooga/followers","following_url":"https://api.github.com/users/wooga/following{/other_user}","gists_url":"https://api.github.com/users/wooga/gists{/gist_id}","starred_url":"https://api.github.com/users/wooga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooga/subscriptions","organizations_url":"https://api.github.com/users/wooga/orgs","repos_url":"https://api.github.com/users/wooga/repos","events_url":"https://api.github.com/users/wooga/events{/privacy}","received_events_url":"https://api.github.com/users/wooga/received_events","type":"Organization","site_admin":false},"repo":{"id":3636695,"name":"locker","full_name":"wooga/locker","owner":{"login":"wooga","id":684356,"avatar_url":"https://avatars.githubusercontent.com/u/684356?v=3","gravatar_id":"","url":"https://api.github.com/users/wooga","html_url":"https://github.com/wooga","followers_url":"https://api.github.com/users/wooga/followers","following_url":"https://api.github.com/users/wooga/following{/other_user}","gists_url":"https://api.github.com/users/wooga/gists{/gist_id}","starred_url":"https://api.github.com/users/wooga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooga/subscriptions","organizations_url":"https://api.github.com/users/wooga/orgs","repos_url":"https://api.github.com/users/wooga/repos","events_url":"https://api.github.com/users/wooga/events{/privacy}","received_events_url":"https://api.github.com/users/wooga/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wooga/locker","description":"Atomic distributed \"check and set\" for short-lived keys","fork":false,"url":"https://api.github.com/repos/wooga/locker","forks_url":"https://api.github.com/repos/wooga/locker/forks","keys_url":"https://api.github.com/repos/wooga/locker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wooga/locker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wooga/locker/teams","hooks_url":"https://api.github.com/repos/wooga/locker/hooks","issue_events_url":"https://api.github.com/repos/wooga/locker/issues/events{/number}","events_url":"https://api.github.com/repos/wooga/locker/events","assignees_url":"https://api.github.com/repos/wooga/locker/assignees{/user}","branches_url":"https://api.github.com/repos/wooga/locker/branches{/branch}","tags_url":"https://api.github.com/repos/wooga/locker/tags","blobs_url":"https://api.github.com/repos/wooga/locker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wooga/locker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wooga/locker/git/refs{/sha}","trees_url":"https://api.github.com/repos/wooga/locker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wooga/locker/statuses/{sha}","languages_url":"https://api.github.com/repos/wooga/locker/languages","stargazers_url":"https://api.github.com/repos/wooga/locker/stargazers","contributors_url":"https://api.github.com/repos/wooga/locker/contributors","subscribers_url":"https://api.github.com/repos/wooga/locker/subscribers","subscription_url":"https://api.github.com/repos/wooga/locker/subscription","commits_url":"https://api.github.com/repos/wooga/locker/commits{/sha}","git_commits_url":"https://api.github.com/repos/wooga/locker/git/commits{/sha}","comments_url":"https://api.github.com/repos/wooga/locker/comments{/number}","issue_comment_url":"https://api.github.com/repos/wooga/locker/issues/comments{/number}","contents_url":"https://api.github.com/repos/wooga/locker/contents/{+path}","compare_url":"https://api.github.com/repos/wooga/locker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wooga/locker/merges","archive_url":"https://api.github.com/repos/wooga/locker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wooga/locker/downloads","issues_url":"https://api.github.com/repos/wooga/locker/issues{/number}","pulls_url":"https://api.github.com/repos/wooga/locker/pulls{/number}","milestones_url":"https://api.github.com/repos/wooga/locker/milestones{/number}","notifications_url":"https://api.github.com/repos/wooga/locker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wooga/locker/labels{/name}","releases_url":"https://api.github.com/repos/wooga/locker/releases{/id}","created_at":"2012-03-06T10:10:59Z","updated_at":"2015-12-11T05:56:44Z","pushed_at":"2015-08-31T11:57:40Z","git_url":"git://github.com/wooga/locker.git","ssh_url":"git@github.com:wooga/locker.git","clone_url":"https://github.com/wooga/locker.git","svn_url":"https://github.com/wooga/locker","homepage":"","size":525,"stargazers_count":92,"watchers_count":92,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":92,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wooga/locker/pulls/10"},"html":{"href":"https://github.com/wooga/locker/pull/10"},"issue":{"href":"https://api.github.com/repos/wooga/locker/issues/10"},"comments":{"href":"https://api.github.com/repos/wooga/locker/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/wooga/locker/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/wooga/locker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wooga/locker/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/wooga/locker/statuses/a72f0349a2bfc52c57c7252016646b2df1f68df7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":2,"changed_files":1}}