Merge pull request #1557 from wziww/master

CLUSTER_REDIR_UNSTABLE error should be retry
This commit is contained in:
Vladimir Mihailenco 2020-11-12 13:58:37 +02:00 committed by GitHub
commit b2a1c6ced0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ func shouldRetry(err error, retryTimeout bool) bool {
if strings.HasPrefix(s, "CLUSTERDOWN ") { if strings.HasPrefix(s, "CLUSTERDOWN ") {
return true return true
} }
if strings.HasPrefix(s, "TRYAGAIN ") {
return true
}
return false return false
} }