{"action":"closed","number":56,"pull_request":{"url":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/56","id":172448634,"html_url":"https://github.com/lukas-krecan/ShedLock/pull/56","diff_url":"https://github.com/lukas-krecan/ShedLock/pull/56.diff","patch_url":"https://github.com/lukas-krecan/ShedLock/pull/56.patch","issue_url":"https://api.github.com/repos/lukas-krecan/ShedLock/issues/56","number":56,"state":"closed","locked":false,"title":"clearing of LockRegistry","user":{"login":"stangls","id":3222227,"avatar_url":"https://avatars2.githubusercontent.com/u/3222227?v=4","gravatar_id":"","url":"https://api.github.com/users/stangls","html_url":"https://github.com/stangls","followers_url":"https://api.github.com/users/stangls/followers","following_url":"https://api.github.com/users/stangls/following{/other_user}","gists_url":"https://api.github.com/users/stangls/gists{/gist_id}","starred_url":"https://api.github.com/users/stangls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stangls/subscriptions","organizations_url":"https://api.github.com/users/stangls/orgs","repos_url":"https://api.github.com/users/stangls/repos","events_url":"https://api.github.com/users/stangls/events{/privacy}","received_events_url":"https://api.github.com/users/stangls/received_events","type":"User","site_admin":false},"body":"Many applications use ShedLock and some database migration tool.\r\n\r\nIntegration tests for those applications might need cleared and re-migrated databases (and possibly insert fresh data for the test).\r\nWhen clearing and re-migrating the database however, the shedlock-table is also cleared - which is okay, since the locks should be cleared. But unfortunately, this is not sufficcient, as Shedlock maintains a list of recently created locks in memory. These recently created locks cache is not accessible from the integration tests as they are `private final` fields instantiated without dependency-injection.\r\n\r\nCurrently, this restriction is bypassed by using reflection during runtime and making the fields accessible.\r\n\r\nThis PR resolves this problem. It allows to clear the memory-maintained locks without making the `private final` fields accessible.","created_at":"2018-03-02T08:42:59Z","updated_at":"2018-03-02T18:51:30Z","closed_at":"2018-03-02T18:51:29Z","merged_at":"2018-03-02T18:51:29Z","merge_commit_sha":"9d2e78ae5f95a7cffabe4e221865ff399ea5cc69","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/56/commits","review_comments_url":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/56/comments","review_comment_url":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukas-krecan/ShedLock/issues/56/comments","statuses_url":"https://api.github.com/repos/lukas-krecan/ShedLock/statuses/751fd8b1c271605597d0f948198bc7dd778df7ec","head":{"label":"stangls:master","ref":"master","sha":"751fd8b1c271605597d0f948198bc7dd778df7ec","user":{"login":"stangls","id":3222227,"avatar_url":"https://avatars2.githubusercontent.com/u/3222227?v=4","gravatar_id":"","url":"https://api.github.com/users/stangls","html_url":"https://github.com/stangls","followers_url":"https://api.github.com/users/stangls/followers","following_url":"https://api.github.com/users/stangls/following{/other_user}","gists_url":"https://api.github.com/users/stangls/gists{/gist_id}","starred_url":"https://api.github.com/users/stangls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stangls/subscriptions","organizations_url":"https://api.github.com/users/stangls/orgs","repos_url":"https://api.github.com/users/stangls/repos","events_url":"https://api.github.com/users/stangls/events{/privacy}","received_events_url":"https://api.github.com/users/stangls/received_events","type":"User","site_admin":false},"repo":{"id":123552538,"name":"ShedLock","full_name":"stangls/ShedLock","owner":{"login":"stangls","id":3222227,"avatar_url":"https://avatars2.githubusercontent.com/u/3222227?v=4","gravatar_id":"","url":"https://api.github.com/users/stangls","html_url":"https://github.com/stangls","followers_url":"https://api.github.com/users/stangls/followers","following_url":"https://api.github.com/users/stangls/following{/other_user}","gists_url":"https://api.github.com/users/stangls/gists{/gist_id}","starred_url":"https://api.github.com/users/stangls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stangls/subscriptions","organizations_url":"https://api.github.com/users/stangls/orgs","repos_url":"https://api.github.com/users/stangls/repos","events_url":"https://api.github.com/users/stangls/events{/privacy}","received_events_url":"https://api.github.com/users/stangls/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stangls/ShedLock","description":"Distributed lock for your scheduled tasks","fork":true,"url":"https://api.github.com/repos/stangls/ShedLock","forks_url":"https://api.github.com/repos/stangls/ShedLock/forks","keys_url":"https://api.github.com/repos/stangls/ShedLock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stangls/ShedLock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stangls/ShedLock/teams","hooks_url":"https://api.github.com/repos/stangls/ShedLock/hooks","issue_events_url":"https://api.github.com/repos/stangls/ShedLock/issues/events{/number}","events_url":"https://api.github.com/repos/stangls/ShedLock/events","assignees_url":"https://api.github.com/repos/stangls/ShedLock/assignees{/user}","branches_url":"https://api.github.com/repos/stangls/ShedLock/branches{/branch}","tags_url":"https://api.github.com/repos/stangls/ShedLock/tags","blobs_url":"https://api.github.com/repos/stangls/ShedLock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stangls/ShedLock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stangls/ShedLock/git/refs{/sha}","trees_url":"https://api.github.com/repos/stangls/ShedLock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stangls/ShedLock/statuses/{sha}","languages_url":"https://api.github.com/repos/stangls/ShedLock/languages","stargazers_url":"https://api.github.com/repos/stangls/ShedLock/stargazers","contributors_url":"https://api.github.com/repos/stangls/ShedLock/contributors","subscribers_url":"https://api.github.com/repos/stangls/ShedLock/subscribers","subscription_url":"https://api.github.com/repos/stangls/ShedLock/subscription","commits_url":"https://api.github.com/repos/stangls/ShedLock/commits{/sha}","git_commits_url":"https://api.github.com/repos/stangls/ShedLock/git/commits{/sha}","comments_url":"https://api.github.com/repos/stangls/ShedLock/comments{/number}","issue_comment_url":"https://api.github.com/repos/stangls/ShedLock/issues/comments{/number}","contents_url":"https://api.github.com/repos/stangls/ShedLock/contents/{+path}","compare_url":"https://api.github.com/repos/stangls/ShedLock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stangls/ShedLock/merges","archive_url":"https://api.github.com/repos/stangls/ShedLock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stangls/ShedLock/downloads","issues_url":"https://api.github.com/repos/stangls/ShedLock/issues{/number}","pulls_url":"https://api.github.com/repos/stangls/ShedLock/pulls{/number}","milestones_url":"https://api.github.com/repos/stangls/ShedLock/milestones{/number}","notifications_url":"https://api.github.com/repos/stangls/ShedLock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stangls/ShedLock/labels{/name}","releases_url":"https://api.github.com/repos/stangls/ShedLock/releases{/id}","deployments_url":"https://api.github.com/repos/stangls/ShedLock/deployments","created_at":"2018-03-02T08:29:42Z","updated_at":"2018-03-02T08:29:44Z","pushed_at":"2018-03-02T08:32:56Z","git_url":"git://github.com/stangls/ShedLock.git","ssh_url":"git@github.com:stangls/ShedLock.git","clone_url":"https://github.com/stangls/ShedLock.git","svn_url":"https://github.com/stangls/ShedLock","homepage":"","size":465,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lukas-krecan:master","ref":"master","sha":"794da0381324aa2322895c18bcce904201074a21","user":{"login":"lukas-krecan","id":815787,"avatar_url":"https://avatars3.githubusercontent.com/u/815787?v=4","gravatar_id":"","url":"https://api.github.com/users/lukas-krecan","html_url":"https://github.com/lukas-krecan","followers_url":"https://api.github.com/users/lukas-krecan/followers","following_url":"https://api.github.com/users/lukas-krecan/following{/other_user}","gists_url":"https://api.github.com/users/lukas-krecan/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-krecan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-krecan/subscriptions","organizations_url":"https://api.github.com/users/lukas-krecan/orgs","repos_url":"https://api.github.com/users/lukas-krecan/repos","events_url":"https://api.github.com/users/lukas-krecan/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-krecan/received_events","type":"User","site_admin":false},"repo":{"id":76177416,"name":"ShedLock","full_name":"lukas-krecan/ShedLock","owner":{"login":"lukas-krecan","id":815787,"avatar_url":"https://avatars3.githubusercontent.com/u/815787?v=4","gravatar_id":"","url":"https://api.github.com/users/lukas-krecan","html_url":"https://github.com/lukas-krecan","followers_url":"https://api.github.com/users/lukas-krecan/followers","following_url":"https://api.github.com/users/lukas-krecan/following{/other_user}","gists_url":"https://api.github.com/users/lukas-krecan/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-krecan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-krecan/subscriptions","organizations_url":"https://api.github.com/users/lukas-krecan/orgs","repos_url":"https://api.github.com/users/lukas-krecan/repos","events_url":"https://api.github.com/users/lukas-krecan/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-krecan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukas-krecan/ShedLock","description":"Distributed lock for your scheduled tasks","fork":false,"url":"https://api.github.com/repos/lukas-krecan/ShedLock","forks_url":"https://api.github.com/repos/lukas-krecan/ShedLock/forks","keys_url":"https://api.github.com/repos/lukas-krecan/ShedLock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukas-krecan/ShedLock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukas-krecan/ShedLock/teams","hooks_url":"https://api.github.com/repos/lukas-krecan/ShedLock/hooks","issue_events_url":"https://api.github.com/repos/lukas-krecan/ShedLock/issues/events{/number}","events_url":"https://api.github.com/repos/lukas-krecan/ShedLock/events","assignees_url":"https://api.github.com/repos/lukas-krecan/ShedLock/assignees{/user}","branches_url":"https://api.github.com/repos/lukas-krecan/ShedLock/branches{/branch}","tags_url":"https://api.github.com/repos/lukas-krecan/ShedLock/tags","blobs_url":"https://api.github.com/repos/lukas-krecan/ShedLock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukas-krecan/ShedLock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukas-krecan/ShedLock/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukas-krecan/ShedLock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukas-krecan/ShedLock/statuses/{sha}","languages_url":"https://api.github.com/repos/lukas-krecan/ShedLock/languages","stargazers_url":"https://api.github.com/repos/lukas-krecan/ShedLock/stargazers","contributors_url":"https://api.github.com/repos/lukas-krecan/ShedLock/contributors","subscribers_url":"https://api.github.com/repos/lukas-krecan/ShedLock/subscribers","subscription_url":"https://api.github.com/repos/lukas-krecan/ShedLock/subscription","commits_url":"https://api.github.com/repos/lukas-krecan/ShedLock/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukas-krecan/ShedLock/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukas-krecan/ShedLock/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukas-krecan/ShedLock/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukas-krecan/ShedLock/contents/{+path}","compare_url":"https://api.github.com/repos/lukas-krecan/ShedLock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukas-krecan/ShedLock/merges","archive_url":"https://api.github.com/repos/lukas-krecan/ShedLock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukas-krecan/ShedLock/downloads","issues_url":"https://api.github.com/repos/lukas-krecan/ShedLock/issues{/number}","pulls_url":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls{/number}","milestones_url":"https://api.github.com/repos/lukas-krecan/ShedLock/milestones{/number}","notifications_url":"https://api.github.com/repos/lukas-krecan/ShedLock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukas-krecan/ShedLock/labels{/name}","releases_url":"https://api.github.com/repos/lukas-krecan/ShedLock/releases{/id}","deployments_url":"https://api.github.com/repos/lukas-krecan/ShedLock/deployments","created_at":"2016-12-11T13:53:59Z","updated_at":"2018-03-02T08:29:32Z","pushed_at":"2018-03-02T18:51:29Z","git_url":"git://github.com/lukas-krecan/ShedLock.git","ssh_url":"git@github.com:lukas-krecan/ShedLock.git","clone_url":"https://github.com/lukas-krecan/ShedLock.git","svn_url":"https://github.com/lukas-krecan/ShedLock","homepage":"","size":464,"stargazers_count":178,"watchers_count":178,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":40,"open_issues":4,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/56"},"html":{"href":"https://github.com/lukas-krecan/ShedLock/pull/56"},"issue":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/issues/56"},"comments":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/lukas-krecan/ShedLock/statuses/751fd8b1c271605597d0f948198bc7dd778df7ec"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"lukas-krecan","id":815787,"avatar_url":"https://avatars3.githubusercontent.com/u/815787?v=4","gravatar_id":"","url":"https://api.github.com/users/lukas-krecan","html_url":"https://github.com/lukas-krecan","followers_url":"https://api.github.com/users/lukas-krecan/followers","following_url":"https://api.github.com/users/lukas-krecan/following{/other_user}","gists_url":"https://api.github.com/users/lukas-krecan/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-krecan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-krecan/subscriptions","organizations_url":"https://api.github.com/users/lukas-krecan/orgs","repos_url":"https://api.github.com/users/lukas-krecan/repos","events_url":"https://api.github.com/users/lukas-krecan/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-krecan/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":8,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"lukas-krecan"}}