From c417ed189c43a2e4bd4591977bb4f1499f5c761e Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 10 Nov 2017 14:23:15 -0800 Subject: [PATCH] clientv3: retry mutable ops on "no connection available" Signed-off-by: Gyu-Ho Lee --- clientv3/retry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientv3/retry.go b/clientv3/retry.go index e6d17d0320ec..5ad66ebfe2db 100644 --- a/clientv3/retry.go +++ b/clientv3/retry.go @@ -45,7 +45,8 @@ func isNonRepeatableStopError(err error) bool { if ev.Code() != codes.Unavailable { return true } - return rpctypes.ErrorDesc(err) != "there is no address available" + desc := rpctypes.ErrorDesc(err) + return desc != "there is no address available" && desc != "there is no connection available" } func (c *Client) newRetryWrapper(isStop retryStopErrFunc) retryRPCFunc {