TRYAGAIN error should be retry

This commit is contained in:
wziww 2020-11-12 17:47:04 +08:00
parent fa2e0da4e8
commit e0aa8939c7
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 ") {
return true
}
if strings.HasPrefix(s, "TRYAGAIN ") {
return true
}
return false
}