{"action":"closed","number":8007,"pull_request":{"url":"https://api.github.com/repos/elastic/beats/pulls/8007","id":209226213,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MjI2MjEz","html_url":"https://github.com/elastic/beats/pull/8007","diff_url":"https://github.com/elastic/beats/pull/8007.diff","patch_url":"https://github.com/elastic/beats/pull/8007.patch","issue_url":"https://api.github.com/repos/elastic/beats/issues/8007","number":8007,"state":"closed","locked":false,"title":"Add RW lock to Winlogbeat checkpoint","user":{"login":"andrewkroh","id":4565752,"node_id":"MDQ6VXNlcjQ1NjU3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/4565752?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewkroh","html_url":"https://github.com/andrewkroh","followers_url":"https://api.github.com/users/andrewkroh/followers","following_url":"https://api.github.com/users/andrewkroh/following{/other_user}","gists_url":"https://api.github.com/users/andrewkroh/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkroh/subscriptions","organizations_url":"https://api.github.com/users/andrewkroh/orgs","repos_url":"https://api.github.com/users/andrewkroh/repos","events_url":"https://api.github.com/users/andrewkroh/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkroh/received_events","type":"User","site_admin":false},"body":"During testing it was possible for two goroutines to be reading and writing\r\nto the checkpoint file. This change adds a RWMutex that guards against\r\nthe persist() method and the read() method from stepping on each other.\r\n\r\nFixes #7897","created_at":"2018-08-17T18:36:22Z","updated_at":"2018-08-22T07:35:37Z","closed_at":"2018-08-22T07:35:37Z","merged_at":"2018-08-22T07:35:37Z","merge_commit_sha":"be71c60897906ecc4bac1496f2d73a525a1986d5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":294278816,"node_id":"MDU6TGFiZWwyOTQyNzg4MTY=","url":"https://api.github.com/repos/elastic/beats/labels/Winlogbeat","name":"Winlogbeat","color":"008000","default":false},{"id":1002259306,"node_id":"MDU6TGFiZWwxMDAyMjU5MzA2","url":"https://api.github.com/repos/elastic/beats/labels/flaky-test","name":"flaky-test","color":"fef2c0","default":false},{"id":228068770,"node_id":"MDU6TGFiZWwyMjgwNjg3NzA=","url":"https://api.github.com/repos/elastic/beats/labels/review","name":"review","color":"207de5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/beats/pulls/8007/commits","review_comments_url":"https://api.github.com/repos/elastic/beats/pulls/8007/comments","review_comment_url":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/beats/issues/8007/comments","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/f8cab62ceb8e9772fb279aa3ed896fd2fd2c646b","head":{"label":"andrewkroh:bugfix/wlb/checkpoint-file-lock","ref":"bugfix/wlb/checkpoint-file-lock","sha":"f8cab62ceb8e9772fb279aa3ed896fd2fd2c646b","user":{"login":"andrewkroh","id":4565752,"node_id":"MDQ6VXNlcjQ1NjU3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/4565752?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewkroh","html_url":"https://github.com/andrewkroh","followers_url":"https://api.github.com/users/andrewkroh/followers","following_url":"https://api.github.com/users/andrewkroh/following{/other_user}","gists_url":"https://api.github.com/users/andrewkroh/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkroh/subscriptions","organizations_url":"https://api.github.com/users/andrewkroh/orgs","repos_url":"https://api.github.com/users/andrewkroh/repos","events_url":"https://api.github.com/users/andrewkroh/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkroh/received_events","type":"User","site_admin":false},"repo":{"id":38412372,"node_id":"MDEwOlJlcG9zaXRvcnkzODQxMjM3Mg==","name":"beats","full_name":"andrewkroh/beats","owner":{"login":"andrewkroh","id":4565752,"node_id":"MDQ6VXNlcjQ1NjU3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/4565752?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewkroh","html_url":"https://github.com/andrewkroh","followers_url":"https://api.github.com/users/andrewkroh/followers","following_url":"https://api.github.com/users/andrewkroh/following{/other_user}","gists_url":"https://api.github.com/users/andrewkroh/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkroh/subscriptions","organizations_url":"https://api.github.com/users/andrewkroh/orgs","repos_url":"https://api.github.com/users/andrewkroh/repos","events_url":"https://api.github.com/users/andrewkroh/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkroh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewkroh/beats","description":"Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":true,"url":"https://api.github.com/repos/andrewkroh/beats","forks_url":"https://api.github.com/repos/andrewkroh/beats/forks","keys_url":"https://api.github.com/repos/andrewkroh/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewkroh/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewkroh/beats/teams","hooks_url":"https://api.github.com/repos/andrewkroh/beats/hooks","issue_events_url":"https://api.github.com/repos/andrewkroh/beats/issues/events{/number}","events_url":"https://api.github.com/repos/andrewkroh/beats/events","assignees_url":"https://api.github.com/repos/andrewkroh/beats/assignees{/user}","branches_url":"https://api.github.com/repos/andrewkroh/beats/branches{/branch}","tags_url":"https://api.github.com/repos/andrewkroh/beats/tags","blobs_url":"https://api.github.com/repos/andrewkroh/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewkroh/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewkroh/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewkroh/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewkroh/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewkroh/beats/languages","stargazers_url":"https://api.github.com/repos/andrewkroh/beats/stargazers","contributors_url":"https://api.github.com/repos/andrewkroh/beats/contributors","subscribers_url":"https://api.github.com/repos/andrewkroh/beats/subscribers","subscription_url":"https://api.github.com/repos/andrewkroh/beats/subscription","commits_url":"https://api.github.com/repos/andrewkroh/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewkroh/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewkroh/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewkroh/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewkroh/beats/contents/{+path}","compare_url":"https://api.github.com/repos/andrewkroh/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewkroh/beats/merges","archive_url":"https://api.github.com/repos/andrewkroh/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewkroh/beats/downloads","issues_url":"https://api.github.com/repos/andrewkroh/beats/issues{/number}","pulls_url":"https://api.github.com/repos/andrewkroh/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewkroh/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewkroh/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewkroh/beats/labels{/name}","releases_url":"https://api.github.com/repos/andrewkroh/beats/releases{/id}","deployments_url":"https://api.github.com/repos/andrewkroh/beats/deployments","created_at":"2015-07-02T05:03:11Z","updated_at":"2018-08-01T14:58:10Z","pushed_at":"2018-08-22T02:13:07Z","git_url":"git://github.com/andrewkroh/beats.git","ssh_url":"git@github.com:andrewkroh/beats.git","clone_url":"https://github.com/andrewkroh/beats.git","svn_url":"https://github.com/andrewkroh/beats","homepage":"https://www.elastic.co/products/beats","size":87553,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"d66cd0d609124aa62e111617394852cddc6c1193","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":16554739,"node_id":"MDEwOlJlcG9zaXRvcnkxNjU1NDczOQ==","name":"beats","full_name":"elastic/beats","owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/beats","description":":tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash ","fork":false,"url":"https://api.github.com/repos/elastic/beats","forks_url":"https://api.github.com/repos/elastic/beats/forks","keys_url":"https://api.github.com/repos/elastic/beats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/beats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/beats/teams","hooks_url":"https://api.github.com/repos/elastic/beats/hooks","issue_events_url":"https://api.github.com/repos/elastic/beats/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/beats/events","assignees_url":"https://api.github.com/repos/elastic/beats/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/beats/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/beats/tags","blobs_url":"https://api.github.com/repos/elastic/beats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/beats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/beats/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/beats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/beats/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/beats/languages","stargazers_url":"https://api.github.com/repos/elastic/beats/stargazers","contributors_url":"https://api.github.com/repos/elastic/beats/contributors","subscribers_url":"https://api.github.com/repos/elastic/beats/subscribers","subscription_url":"https://api.github.com/repos/elastic/beats/subscription","commits_url":"https://api.github.com/repos/elastic/beats/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/beats/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/beats/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/beats/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/beats/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/beats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/beats/merges","archive_url":"https://api.github.com/repos/elastic/beats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/beats/downloads","issues_url":"https://api.github.com/repos/elastic/beats/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/beats/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/beats/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/beats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/beats/labels{/name}","releases_url":"https://api.github.com/repos/elastic/beats/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/beats/deployments","created_at":"2014-02-05T19:01:02Z","updated_at":"2018-08-22T03:15:19Z","pushed_at":"2018-08-22T07:35:37Z","git_url":"git://github.com/elastic/beats.git","ssh_url":"git@github.com:elastic/beats.git","clone_url":"https://github.com/elastic/beats.git","svn_url":"https://github.com/elastic/beats","homepage":"https://www.elastic.co/products/beats","size":88582,"stargazers_count":6016,"watchers_count":6016,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1867,"mirror_url":null,"archived":false,"open_issues_count":902,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1867,"open_issues":902,"watchers":6016,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/beats/pulls/8007"},"html":{"href":"https://github.com/elastic/beats/pull/8007"},"issue":{"href":"https://api.github.com/repos/elastic/beats/issues/8007"},"comments":{"href":"https://api.github.com/repos/elastic/beats/issues/8007/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/beats/pulls/8007/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/beats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/beats/pulls/8007/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/beats/statuses/f8cab62ceb8e9772fb279aa3ed896fd2fd2c646b"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ruflin","id":244900,"node_id":"MDQ6VXNlcjI0NDkwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/244900?v=4","gravatar_id":"","url":"https://api.github.com/users/ruflin","html_url":"https://github.com/ruflin","followers_url":"https://api.github.com/users/ruflin/followers","following_url":"https://api.github.com/users/ruflin/following{/other_user}","gists_url":"https://api.github.com/users/ruflin/gists{/gist_id}","starred_url":"https://api.github.com/users/ruflin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruflin/subscriptions","organizations_url":"https://api.github.com/users/ruflin/orgs","repos_url":"https://api.github.com/users/ruflin/repos","events_url":"https://api.github.com/users/ruflin/events{/privacy}","received_events_url":"https://api.github.com/users/ruflin/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":7,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"ruflin"}}