-
Notifications
You must be signed in to change notification settings - Fork 220
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
Add ConfChange::AddLearnerNode command. #212
Conversation
LGTM |
PTAL @overvenus @BusyJay |
LGTM |
@BusyJay PTAL thanks. |
proto/pdpb.proto
Outdated
@@ -233,6 +233,7 @@ message RegionHeartbeatRequest { | |||
enum ConfChangeType { | |||
AddNode = 0; | |||
RemoveNode = 1; | |||
AddLearnerNode = 2; |
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 change 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.
I thought pd should also support add learner node
command.
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.
Yes. But not in this pr.
Please add pr description to show where the changes come from. |
@BusyJay PTAL thanks. |
proto/eraftpb.proto
Outdated
@@ -72,11 +72,13 @@ message HardState { | |||
|
|||
message ConfState { | |||
repeated uint64 nodes = 1; | |||
repeated uint64 learner_nodes = 2; |
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 not learners
[0]?
[0] https://github.com/coreos/etcd/pull/8751/files#diff-ed53c23ad570cdd6dce39cbd1b751cacR80
proto/metapb.proto
Outdated
@@ -51,6 +51,7 @@ message Region { | |||
optional bytes end_key = 3; | |||
optional RegionEpoch region_epoch = 4; | |||
repeated Peer peers = 5; | |||
repeated Peer learners = 6; |
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.
Should remove this too.
@BusyJay @overvenus PTAL thanks. |
LGTM |
This PR is for support raft learner. See etcd-io/etcd#8751