Skip to content
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 2 #10727

Merged
merged 15 commits into from
May 15, 2019
Merged

Commits on May 15, 2019

  1. *: add learner field in endpoint status

    Added learner field to endpoint status API.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    355d0ab View commit details
    Browse the repository at this point in the history
  2. etcdserver: filter rpc request to learner

    Hardcoded allowed rpc for learner node. Added filtering in grpc
    interceptor to check if rpc is allowed for learner node.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    43ed94f View commit details
    Browse the repository at this point in the history
  3. integration: add TestKVForLearner

    Adding TestKVForLearner. Also adding test utility functions for clientv3
    integration tests.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    57a11eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ba9fd62 View commit details
    Browse the repository at this point in the history
  5. clientv3: add member promote

    WIZARD-CXY authored and jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    7f9479a View commit details
    Browse the repository at this point in the history
  6. etcdserver: exclude learner from leader transfer

    1. Maintenance API MoveLeader() returns ErrBadLeaderTransferee if
    transferee does not exist or is raft learner.
    
    2. etcdserver TransferLeadership() only choose voting member as
    transferee.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    44d935e View commit details
    Browse the repository at this point in the history
  7. integration: add TestMoveLeaderToLearnerError

    Adding integration test TestMoveLeaderToLearnerError, which ensures that
    leader transfer to learner member will fail.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    e8dc4c5 View commit details
    Browse the repository at this point in the history
  8. integration: add TestTransferLeadershipWithLearner

    Adding integration test TestTransferLeadershipWithLearner, which ensures
    that TransferLeadership does not timeout due to learner is automatically
    picked by leader as transferee.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    bd7f428 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a039f2e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c55519b View commit details
    Browse the repository at this point in the history
  11. etcdserver: remove unnecessary bool comparison

    Fixes 'gosimple' test.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    c836e37 View commit details
    Browse the repository at this point in the history
  12. integration: remove unnecessary type conversion

    Fixes go 'unconvert' test.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    ac05795 View commit details
    Browse the repository at this point in the history
  13. clientv3/integration: fix cluster tests

    Fixes TestMemberAddForLearner and TestMemberPromoteForLearner.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    b23c8f3 View commit details
    Browse the repository at this point in the history
  14. clientv3/integration: deflake TestKVForLearner

    Adding delay in the test for the newly started learner member to catch
    up applying config change entries in raft log.
    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    90d28c0 View commit details
    Browse the repository at this point in the history
  15. *: address comments

    jingyih committed May 15, 2019
    Configuration menu
    Copy the full SHA
    23f1d02 View commit details
    Browse the repository at this point in the history