...

Text file src/go.etcd.io/etcd/raft/v3/confchange/testdata/joint_autoleave.txt

Documentation: go.etcd.io/etcd/raft/v3/confchange/testdata

     1# Test the autoleave argument to EnterJoint. It defaults to false in the
     2# datadriven tests. The flag has no associated semantics in this package,
     3# it is simply passed through.
     4simple
     5v1
     6----
     7voters=(1)
     81: StateProbe match=0 next=0
     9
    10# Autoleave is reflected in the config.
    11enter-joint autoleave=true
    12v2 v3
    13----
    14voters=(1 2 3)&&(1) autoleave
    151: StateProbe match=0 next=0
    162: StateProbe match=0 next=1
    173: StateProbe match=0 next=1
    18
    19# Can't enter-joint twice, even if autoleave changes.
    20enter-joint autoleave=false
    21----
    22config is already joint
    23
    24leave-joint
    25----
    26voters=(1 2 3)
    271: StateProbe match=0 next=0
    282: StateProbe match=0 next=1
    293: StateProbe match=0 next=1

View as plain text