-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syncer: sync region leaders between PD leader and follower #2591
Conversation
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@sre-bot /run-all-tests |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
ed9710e
to
265e2af
Compare
@sre-bot /run-all-tests |
Would you like to add a test for it? |
Yes. I'm working on it. |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: ShuNing <nolouch@gmail.com>
LGTM |
@disksing,Thanks for you review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, please update the kvproto
.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
I removed the |
@JmPotato That PR already merged. |
@sre-bot /rebuild |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
/run-all-tests |
/merge |
/run-all-tests |
Does this pr need to be cherry-picked to release-4.0? |
@JmPotato we need. |
/run-cherry-picker |
cherry pick to release-4.0 failed |
1 similar comment
cherry pick to release-4.0 failed |
/run-cherry-picker |
cherry pick to release-4.0 failed |
/run-cherry-picker |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #2763 |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato ghzpotato@gmail.com
What problem does this PR solve?
Add the feature requested in issue #2542
What is changed and how it works?
Add
region_leaders
field inSyncRegionResponse
to pass the region's leader info between PD leader and follower. And the region leader changing will also trigger sync now to make the region leader info more accurate.Check List
Tests
Related changes
pingcap/kvproto