Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add retry for invalid connection. Fixes #13578 #13580

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shuangkun
Copy link
Member

@shuangkun shuangkun commented Sep 9, 2024

My large workflow failed when encounter "invalid connection". My cluster has been working fine, this is an occasional problem.We should retry when offload info encounters this error.

Fixes #13578

Motivation

Modifications

Verification

@agilgur5 agilgur5 changed the title fix: add retry for invalid connection. Fixes: #13578 fix: add retry for invalid connection. Fixes #13578 Sep 9, 2024
@@ -112,6 +112,9 @@ func isTransientNetworkErr(err error) bool {
} else if strings.Contains(errorString, "connect: connection refused") {
// If err is connection refused, retry.
return true
} else if strings.Contains(errorString, "invalid connection") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a common error or is it a vendor specific error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid connection error should retry
2 participants