From 5e3f03df06561dbba70621a8ef31b2129cf94017 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 2 Sep 2016 00:35:05 -0400 Subject: [PATCH] etcd: Catch possible raft grpc error --- etcd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etcd.go b/etcd.go index f6ef0514..f27d4e8c 100644 --- a/etcd.go +++ b/etcd.go @@ -622,6 +622,8 @@ func (obj *EmbdEtcd) CtxError(ctx context.Context, err error) (context.Context, fallthrough case err == etcdserver.ErrStopped: // TODO: does this ever happen? fallthrough + case isGrpc(raft.ErrStopped): + fallthrough case isGrpc(etcdserver.ErrStopped): fallthrough case isGrpc(grpc.ErrClientConnClosing):