From e0aa8939c72aaa309f3b7ba3ca8212482b856bc4 Mon Sep 17 00:00:00 2001 From: wziww Date: Thu, 12 Nov 2020 17:47:04 +0800 Subject: [PATCH] TRYAGAIN error should be retry --- error.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/error.go b/error.go index d29c0c99..9fe1376b 100644 --- a/error.go +++ b/error.go @@ -52,6 +52,9 @@ func shouldRetry(err error, retryTimeout bool) bool { if strings.HasPrefix(s, "CLUSTERDOWN ") { return true } + if strings.HasPrefix(s, "TRYAGAIN ") { + return true + } return false }