mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 08:10:20 +00:00
e2e: retry when a "transport is closing" error is hit
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>
This commit is contained in:
parent
1f650e1204
commit
1fa8939e84
@ -41,6 +41,11 @@ func isRetryableAPIError(err error) bool {
|
|||||||
return true
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user