{"action":"opened","number":1119,"pull_request":{"url":"https://api.github.com/repos/pingcap/pd/pulls/1119","id":196661743,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NjYxNzQz","html_url":"https://github.com/pingcap/pd/pull/1119","diff_url":"https://github.com/pingcap/pd/pull/1119.diff","patch_url":"https://github.com/pingcap/pd/pull/1119.patch","issue_url":"https://api.github.com/repos/pingcap/pd/issues/1119","number":1119,"state":"open","locked":false,"title":"server: handle the heartbeat of the region with peers change","user":{"login":"nolouch","id":6428910,"node_id":"MDQ6VXNlcjY0Mjg5MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6428910?v=4","gravatar_id":"","url":"https://api.github.com/users/nolouch","html_url":"https://github.com/nolouch","followers_url":"https://api.github.com/users/nolouch/followers","following_url":"https://api.github.com/users/nolouch/following{/other_user}","gists_url":"https://api.github.com/users/nolouch/gists{/gist_id}","starred_url":"https://api.github.com/users/nolouch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolouch/subscriptions","organizations_url":"https://api.github.com/users/nolouch/orgs","repos_url":"https://api.github.com/users/nolouch/repos","events_url":"https://api.github.com/users/nolouch/events{/privacy}","received_events_url":"https://api.github.com/users/nolouch/received_events","type":"User","site_admin":false},"body":"<!--\r\nThank you for working on PD! Please read PD's [CONTRIBUTING](https://github.com/pingcap/pd/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.\r\n-->\r\n\r\n## What have you changed? (required)\r\n\r\n<!--\r\nPlease explain **IN DETAIL** what the changes are in this PR and why they are needed:\r\n- Summarize your change (required)\r\n- How does this PR work? Need a brief introduction for the changed logic (optional)\r\n- Describe clearly one logical change and avoid lazy messages (optional)\r\n- Describe any limitations of the current code (optional)\r\n\r\nPlease **NOTE** that:\r\n- Do not assume the code is self-evident\r\n- Do not assume reviewers understand the original issue\r\n-->\r\n After TiKV unsafe recover some region , the region epoch not changed but the peers number have changed, we should update it.\r\n\r\n## What are the type of the changes (required)?\r\n\r\n<!--\r\nThe currently defined types are listed below, please pick one of the types for this PR by removing the others:\r\n-->\r\n- Bug fix \r\n\r\n## How has this PR been tested (required)?\r\n<!--\r\nPlease describe the tests that you ran to verify your changes. Have you finished unit tests, integration tests, or manual tests?\r\n-->\r\n- Unit tests\r\n\r\n","created_at":"2018-06-22T07:46:53Z","updated_at":"2018-06-22T07:46:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pingcap/pd/pulls/1119/commits","review_comments_url":"https://api.github.com/repos/pingcap/pd/pulls/1119/comments","review_comment_url":"https://api.github.com/repos/pingcap/pd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/pd/issues/1119/comments","statuses_url":"https://api.github.com/repos/pingcap/pd/statuses/e2959e28f2b6efc10bd6c855abc941f2527a91af","head":{"label":"nolouch:fix-cache-update","ref":"fix-cache-update","sha":"e2959e28f2b6efc10bd6c855abc941f2527a91af","user":{"login":"nolouch","id":6428910,"node_id":"MDQ6VXNlcjY0Mjg5MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6428910?v=4","gravatar_id":"","url":"https://api.github.com/users/nolouch","html_url":"https://github.com/nolouch","followers_url":"https://api.github.com/users/nolouch/followers","following_url":"https://api.github.com/users/nolouch/following{/other_user}","gists_url":"https://api.github.com/users/nolouch/gists{/gist_id}","starred_url":"https://api.github.com/users/nolouch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolouch/subscriptions","organizations_url":"https://api.github.com/users/nolouch/orgs","repos_url":"https://api.github.com/users/nolouch/repos","events_url":"https://api.github.com/users/nolouch/events{/privacy}","received_events_url":"https://api.github.com/users/nolouch/received_events","type":"User","site_admin":false},"repo":{"id":107515916,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc1MTU5MTY=","name":"pd","full_name":"nolouch/pd","owner":{"login":"nolouch","id":6428910,"node_id":"MDQ6VXNlcjY0Mjg5MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6428910?v=4","gravatar_id":"","url":"https://api.github.com/users/nolouch","html_url":"https://github.com/nolouch","followers_url":"https://api.github.com/users/nolouch/followers","following_url":"https://api.github.com/users/nolouch/following{/other_user}","gists_url":"https://api.github.com/users/nolouch/gists{/gist_id}","starred_url":"https://api.github.com/users/nolouch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolouch/subscriptions","organizations_url":"https://api.github.com/users/nolouch/orgs","repos_url":"https://api.github.com/users/nolouch/repos","events_url":"https://api.github.com/users/nolouch/events{/privacy}","received_events_url":"https://api.github.com/users/nolouch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nolouch/pd","description":"Placement driver for TiKV","fork":true,"url":"https://api.github.com/repos/nolouch/pd","forks_url":"https://api.github.com/repos/nolouch/pd/forks","keys_url":"https://api.github.com/repos/nolouch/pd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nolouch/pd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nolouch/pd/teams","hooks_url":"https://api.github.com/repos/nolouch/pd/hooks","issue_events_url":"https://api.github.com/repos/nolouch/pd/issues/events{/number}","events_url":"https://api.github.com/repos/nolouch/pd/events","assignees_url":"https://api.github.com/repos/nolouch/pd/assignees{/user}","branches_url":"https://api.github.com/repos/nolouch/pd/branches{/branch}","tags_url":"https://api.github.com/repos/nolouch/pd/tags","blobs_url":"https://api.github.com/repos/nolouch/pd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nolouch/pd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nolouch/pd/git/refs{/sha}","trees_url":"https://api.github.com/repos/nolouch/pd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nolouch/pd/statuses/{sha}","languages_url":"https://api.github.com/repos/nolouch/pd/languages","stargazers_url":"https://api.github.com/repos/nolouch/pd/stargazers","contributors_url":"https://api.github.com/repos/nolouch/pd/contributors","subscribers_url":"https://api.github.com/repos/nolouch/pd/subscribers","subscription_url":"https://api.github.com/repos/nolouch/pd/subscription","commits_url":"https://api.github.com/repos/nolouch/pd/commits{/sha}","git_commits_url":"https://api.github.com/repos/nolouch/pd/git/commits{/sha}","comments_url":"https://api.github.com/repos/nolouch/pd/comments{/number}","issue_comment_url":"https://api.github.com/repos/nolouch/pd/issues/comments{/number}","contents_url":"https://api.github.com/repos/nolouch/pd/contents/{+path}","compare_url":"https://api.github.com/repos/nolouch/pd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nolouch/pd/merges","archive_url":"https://api.github.com/repos/nolouch/pd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nolouch/pd/downloads","issues_url":"https://api.github.com/repos/nolouch/pd/issues{/number}","pulls_url":"https://api.github.com/repos/nolouch/pd/pulls{/number}","milestones_url":"https://api.github.com/repos/nolouch/pd/milestones{/number}","notifications_url":"https://api.github.com/repos/nolouch/pd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nolouch/pd/labels{/name}","releases_url":"https://api.github.com/repos/nolouch/pd/releases{/id}","deployments_url":"https://api.github.com/repos/nolouch/pd/deployments","created_at":"2017-10-19T07:59:12Z","updated_at":"2018-04-13T05:10:43Z","pushed_at":"2018-06-22T07:42:07Z","git_url":"git://github.com/nolouch/pd.git","ssh_url":"git@github.com:nolouch/pd.git","clone_url":"https://github.com/nolouch/pd.git","svn_url":"https://github.com/nolouch/pd","homepage":"","size":20992,"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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pingcap:master","ref":"master","sha":"94d19ae3b5c9e6c348f6cb05ff7464e4022c9492","user":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":53311716,"node_id":"MDEwOlJlcG9zaXRvcnk1MzMxMTcxNg==","name":"pd","full_name":"pingcap/pd","owner":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pingcap/pd","description":"Placement driver for TiKV","fork":false,"url":"https://api.github.com/repos/pingcap/pd","forks_url":"https://api.github.com/repos/pingcap/pd/forks","keys_url":"https://api.github.com/repos/pingcap/pd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/pd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/pd/teams","hooks_url":"https://api.github.com/repos/pingcap/pd/hooks","issue_events_url":"https://api.github.com/repos/pingcap/pd/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/pd/events","assignees_url":"https://api.github.com/repos/pingcap/pd/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/pd/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/pd/tags","blobs_url":"https://api.github.com/repos/pingcap/pd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/pd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/pd/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/pd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/pd/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/pd/languages","stargazers_url":"https://api.github.com/repos/pingcap/pd/stargazers","contributors_url":"https://api.github.com/repos/pingcap/pd/contributors","subscribers_url":"https://api.github.com/repos/pingcap/pd/subscribers","subscription_url":"https://api.github.com/repos/pingcap/pd/subscription","commits_url":"https://api.github.com/repos/pingcap/pd/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/pd/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/pd/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/pd/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/pd/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/pd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/pd/merges","archive_url":"https://api.github.com/repos/pingcap/pd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/pd/downloads","issues_url":"https://api.github.com/repos/pingcap/pd/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/pd/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/pd/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/pd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/pd/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/pd/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/pd/deployments","created_at":"2016-03-07T09:13:06Z","updated_at":"2018-06-22T03:57:47Z","pushed_at":"2018-06-22T03:49:16Z","git_url":"git://github.com/pingcap/pd.git","ssh_url":"git@github.com:pingcap/pd.git","clone_url":"https://github.com/pingcap/pd.git","svn_url":"https://github.com/pingcap/pd","homepage":"","size":11501,"stargazers_count":215,"watchers_count":215,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":132,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":132,"open_issues":45,"watchers":215,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/pd/pulls/1119"},"html":{"href":"https://github.com/pingcap/pd/pull/1119"},"issue":{"href":"https://api.github.com/repos/pingcap/pd/issues/1119"},"comments":{"href":"https://api.github.com/repos/pingcap/pd/issues/1119/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/pd/pulls/1119/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/pd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/pd/pulls/1119/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/pd/statuses/e2959e28f2b6efc10bd6c855abc941f2527a91af"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":16,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"nolouch"}}