-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
*: support raft learner in etcd - part 1 #10725
Conversation
- Added isLearner flag to MemberAddRequest in Cluster API. - Added isLearner field to StatusResponse in Maintenance API. - Added MemberPromote rpc to Cluster API.
Fixed compilation erros after API change for learner.
Added IsLearner field to etcdserver internal Member type. Routed learner MemberAdd request from server API to raft. Apply learner MemberAdd result to server after the request is passed through Raft.
Added IsLearner flag to clientv3 MemberAdd API.
Added support for "etcdctl member add --learner".
Added an e2e test to exercise "etcdctl member add --learner".
lgtm after improving the interface thing. |
build failed with
|
Yeah. That is known. There are conflicts to master branch due to changes added to master branch after learner feature branch's branching off. They are fixed after a later rebasing. This particular one is fixed in 11e4168. |
There are also conflicts in functional tests, which are fixed in c8fbc4d. Since we are going to have a new function |
@xiang90 BTW, we had travis CI enabled in learner feature branch during the development. So all tests will pass if all commits are included. When this PR is created, I rebased to latest master, therefore the conflicts - maybe we should get the whole thing reviewed and merge together? |
Made changes to Clientv3 Cluster API: - Added MemberAddAsLearner. - Reverted changes to MemberAdd - removed input parameter isLearner.
Lgtm after fixing the nits |
Made changes to api/membership: - Added MemberAddAsLearner - Reverted changes to MemberAdd - removed input parameter isLearner
Let us merge the commits in pr by pr. |
Can you clarify? |
@jingyih Can you highlight those changes from this PR in our changelog? Thanks for the great work! |
Sure I will update the changelog. |
The first 7 commits of #10645. Rebased to master.
cc @xiang90