Skip to content

Commit

Permalink
e2e: retry when a "transport is closing" error is hit
Browse files Browse the repository at this point in the history
There have been occasional CI job failures due to "transport is closing"
errors. Adding this error to the isRetryableAPIError() function should
make sure to retry the request until the connection is restored.

Fixes: #2613
Signed-off-by: Niels de Vos <ndevos@redhat.com>
  • Loading branch information
nixpanic authored and mergify-bot committed Nov 16, 2021
1 parent 191b603 commit 7ee30ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ func isRetryableAPIError(err error) bool {
return true
}

// "transport is closing" is an internal gRPC err, we can not use ErrConnClosing
if strings.Contains(err.Error(), "transport is closing") {
return true
}

return false
}

Expand Down

0 comments on commit 7ee30ce

Please sign in to comment.