-
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
*: fix the issue that loadcluster does not remove overlap regions #2022
Conversation
707f8b6
to
0828315
Compare
Signed-off-by: nolouch <nolouch@gmail.com>
0828315
to
88641d0
Compare
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
@@ -304,6 +304,9 @@ func (r *RegionInfo) GetID() uint64 { | |||
|
|||
// GetMeta returns the meta information of the region. | |||
func (r *RegionInfo) GetMeta() *metapb.Region { | |||
if r == nil { | |||
return nil | |||
} |
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.
why need this?
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.
If not may panic in this line.
/run-all-tests |
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
@@ -94,6 +94,13 @@ func (s *serverTestSuite) TestRegionSyncer(c *C) { | |||
err = rc.HandleRegionHeartbeat(region) | |||
c.Assert(err, IsNil) | |||
} | |||
// merge case |
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.
do we need to add test with different merge order and epoch?
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2022 +/- ##
==========================================
- Coverage 77.35% 77.33% -0.02%
==========================================
Files 180 180
Lines 18109 18128 +19
==========================================
+ Hits 14008 14020 +12
- Misses 3035 3038 +3
- Partials 1066 1070 +4
Continue to review full report at Codecov.
|
Signed-off-by: nolouch <nolouch@gmail.com>
/merge |
/run-all-tests |
@nolouch merge failed. |
/merge |
/run-all-tests |
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
…kv#2022) Signed-off-by: nolouch <nolouch@gmail.com>
…v#2022) Signed-off-by: nolouch <nolouch@gmail.com>
…v#2022) Signed-off-by: nolouch <nolouch@gmail.com>
…v#2022) Signed-off-by: nolouch <nolouch@gmail.com>
…v#2022) Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch nolouch@gmail.com
What problem does this PR solve?
fix #2011
What is changed and how it works?
check the region epoch firstly.
Check List
Tests