mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd-tester: match ErrTimeout in stresser
Fix https://github.com/coreos/etcd/issues/5804.
This commit is contained in:
parent
8e825de35f
commit
15f2fd0726
@ -106,7 +106,7 @@ func (s *stresser) Stress() error {
|
|||||||
// new leader and start processing requests again.
|
// new leader and start processing requests again.
|
||||||
shouldContinue = true
|
shouldContinue = true
|
||||||
|
|
||||||
case etcdserver.ErrTimeoutDueToLeaderFail.Error():
|
case etcdserver.ErrTimeoutDueToLeaderFail.Error(), etcdserver.ErrTimeout.Error():
|
||||||
// This retries when request is triggered at the same time as
|
// This retries when request is triggered at the same time as
|
||||||
// leader failure and follower nodes receive time out errors
|
// leader failure and follower nodes receive time out errors
|
||||||
// from losing their leader. Followers should retry to connect
|
// from losing their leader. Followers should retry to connect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user