From faffc6f70d10b0dbc0a0405d4ca8e801f75249c7 Mon Sep 17 00:00:00 2001 From: Wenquan Xing Date: Thu, 12 Jul 2018 10:36:51 -0700 Subject: [PATCH] yarpc error code 13 should not be retriable --- common/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/util.go b/common/util.go index 43f8dfb87d4..0d5324ee9c1 100644 --- a/common/util.go +++ b/common/util.go @@ -182,7 +182,7 @@ func IsWhitelistServiceTransientError(err error) bool { return true case *yarpcerrors.Status: // We only selectively retry the following yarpc errors client can safe retry with a backoff - if yarpcerrors.IsDeadlineExceeded(err) || yarpcerrors.IsUnavailable(err) || yarpcerrors.IsInternal(err) { + if yarpcerrors.IsDeadlineExceeded(err) || yarpcerrors.IsUnavailable(err) { return true } return false