etcd: Catch possible raft grpc error
This commit is contained in:
2
etcd.go
2
etcd.go
@@ -622,6 +622,8 @@ func (obj *EmbdEtcd) CtxError(ctx context.Context, err error) (context.Context,
|
|||||||
fallthrough
|
fallthrough
|
||||||
case err == etcdserver.ErrStopped: // TODO: does this ever happen?
|
case err == etcdserver.ErrStopped: // TODO: does this ever happen?
|
||||||
fallthrough
|
fallthrough
|
||||||
|
case isGrpc(raft.ErrStopped):
|
||||||
|
fallthrough
|
||||||
case isGrpc(etcdserver.ErrStopped):
|
case isGrpc(etcdserver.ErrStopped):
|
||||||
fallthrough
|
fallthrough
|
||||||
case isGrpc(grpc.ErrClientConnClosing):
|
case isGrpc(grpc.ErrClientConnClosing):
|
||||||
|
|||||||
Reference in New Issue
Block a user