-
Notifications
You must be signed in to change notification settings - Fork 721
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: add split support. #18
Conversation
c.Assert(right.GetStartKey(), BytesEquals, []byte("b")) | ||
c.Assert(right.GetEndKey(), BytesEquals, []byte("")) | ||
|
||
region, err = cluster.GetRegion([]byte("b")) |
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 testing "b" twice? Maybe you want to test "c"?
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.
my fault.
LGTM |
PTAL @ngaut |
newRegion.Peers[i] = &peer | ||
} | ||
|
||
newRegion.MaxPeerId = proto.Uint64(maxPeerID) |
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.
We don't need to send max peer id. The raft group can calculate it automatically.
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.
Here simulates the raft group, so it should handle here.
LGTM |
8f9f2a4
to
90c9071
Compare
Signed-off-by: zeminzhou <[email protected]> Signed-off-by: disksing <[email protected]>
Signed-off-by: zeminzhou <[email protected]> Signed-off-by: disksing <[email protected]>
Signed-off-by: zeminzhou <[email protected]> Signed-off-by: disksing <[email protected]>
Signed-off-by: zeminzhou <[email protected]> Signed-off-by: disksing <[email protected]>
Signed-off-by: zeminzhou <[email protected]> Signed-off-by: disksing <[email protected]>
@ngaut @disksing