Skip to content

Commit

Permalink
clientv3: retry mutable ops on "no connection available"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Nov 10, 2017
1 parent 93f12da commit c669ff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clientv3/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c669ff9

Please sign in to comment.