mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 11:57:51 +00:00
retry other etcd ErrTimeout variants
etcd can return more detailed ErrTimeout variants in rare cases, and we want to retry on those too.
This commit is contained in:
parent
37507db4ac
commit
2dce518a24
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ func (e *Etcd) retryClient(fn func(cli *clientv3.Client) error) (err error) {
|
|||
e.cli = cli
|
||||
e.cliMu.Unlock()
|
||||
break
|
||||
case etcdserver.ErrTimeout:
|
||||
case etcdserver.ErrTimeout, etcdserver.ErrTimeoutDueToLeaderFail, etcdserver.ErrTimeoutDueToConnectionLost, etcdserver.ErrTimeoutLeaderTransfer:
|
||||
// sporadic timeouts are concerning but not necessarily fatal
|
||||
// and can usually be retried.
|
||||
elapsed := time.Since(start)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue