-
Notifications
You must be signed in to change notification settings - Fork 720
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
server: fix the race condition of region heartbeats from different regions #2198
Conversation
regions Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
/run-all-tests |
Can we add a test to cover this case? |
Yes. |
…li1995/pd into fix-region-heartbeat-race
/run-all-tests |
Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
…li1995/pd into fix-region-heartbeat-race
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
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
/merge |
Your auto merge job has been accepted, waiting for 2197 |
@youjiali1995 Please resolve the conflict. |
…n-heartbeat-race Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
/run-all-tests |
Sorry for the late reply. PTAL again. @rleungx |
/merge |
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #2198 +/- ##
=========================================
Coverage ? 76.01%
=========================================
Files ? 196
Lines ? 21080
Branches ? 0
=========================================
Hits ? 16025
Misses ? 3876
Partials ? 1179
Continue to review full report at Codecov.
|
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
…ions (tikv#2198) Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
…gions (tikv#2198) Signed-off-by: youjiali1995 <zlwgx1023@gmail.com>
Signed-off-by: youjiali1995 zlwgx1023@gmail.com
What problem does this PR solve?
Fix #2149
What is changed and how it works?
Check the validation of the region heartbeat again before putting it.
Check List
Tests
Code changes
Side effects
Related changes