-
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) #2795
Conversation
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Codecov Report
@@ Coverage Diff @@
## release-4.0 #2795 +/- ##
===============================================
+ Coverage 77.41% 77.44% +0.02%
===============================================
Files 206 206
Lines 22630 22652 +22
===============================================
+ Hits 17520 17542 +22
Misses 3790 3790
Partials 1320 1320
Continue to review full report at Codecov.
|
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
/run-all-tests |
/merge |
/run-all-tests |
1 similar comment
/run-all-tests |
@JmPotato merge failed. |
/run-all-tests |
1 similar comment
/run-all-tests |
cherry-pick #2591 to release-4.0
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
Release note