etcd: Catch possible raft grpc error

This commit is contained in:
James Shubin
2016-09-02 00:35:05 -04:00
parent 8ab8e6679a
commit 5e3f03df06

View File

@@ -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):