Skip to content

Commit

Permalink
same as what google do.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Aug 18, 2022
1 parent 1b7b8ea commit d1a8743
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/errorutil/ignore.go
Expand Up @@ -81,8 +81,7 @@ func IsRetryableEtcdError(err error) bool {
return true
}
// see: https://github.com/pingcap/tiflow/issues/6720
if strings.Contains(etcdErr.Error(), "error reading from server: EOF") &&
strings.Contains(etcdErr.Error(), "received prior goaway") {
if strings.Contains(etcdErr.Error(), "received prior goaway: code: NO_ERROR") {
return true
}
return false
Expand Down

0 comments on commit d1a8743

Please sign in to comment.