mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd-tester: match ErrTimeoutDueToLeaderFail
stresser in followers should retry when failure is injected to their leader.
This commit is contained in:
parent
c00e97ea49
commit
ac68f70843
@ -105,12 +105,22 @@ func (s *stresser) Stress() error {
|
|||||||
// as well. We want to keep stressing until the cluster elects a
|
// as well. We want to keep stressing until the cluster elects a
|
||||||
// new leader and start processing requests again.
|
// new leader and start processing requests again.
|
||||||
shouldContinue = true
|
shouldContinue = true
|
||||||
|
|
||||||
|
case etcdserver.ErrTimeoutDueToLeaderFail.Error():
|
||||||
|
// This retries when request is triggered at the same time as
|
||||||
|
// leader failure and follower nodes receive time out errors
|
||||||
|
// from losing their leader. Followers should retry to connect
|
||||||
|
// to the new leader.
|
||||||
|
shouldContinue = true
|
||||||
|
|
||||||
case etcdserver.ErrStopped.Error():
|
case etcdserver.ErrStopped.Error():
|
||||||
// one of the etcd nodes stopped from failure injection
|
// one of the etcd nodes stopped from failure injection
|
||||||
shouldContinue = true
|
shouldContinue = true
|
||||||
|
|
||||||
case transport.ErrConnClosing.Desc:
|
case transport.ErrConnClosing.Desc:
|
||||||
// server closed the transport (failure injected node)
|
// server closed the transport (failure injected node)
|
||||||
shouldContinue = true
|
shouldContinue = true
|
||||||
|
|
||||||
case rpctypes.ErrNotCapable.Error():
|
case rpctypes.ErrNotCapable.Error():
|
||||||
// capability check has not been done (in the beginning)
|
// capability check has not been done (in the beginning)
|
||||||
shouldContinue = true
|
shouldContinue = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user