Fix: Connection-reset crashes the workflow#2174
Merged
pditommaso merged 5 commits intonextflow-io:masterfrom Jun 18, 2021
Merged
Fix: Connection-reset crashes the workflow#2174pditommaso merged 5 commits intonextflow-io:masterfrom
pditommaso merged 5 commits intonextflow-io:masterfrom
Conversation
Signed-off-by: Lehmann-Fabian <fabian.lehmann@informatik.hu-berlin.de>
pditommaso
requested changes
Jun 17, 2021
Member
pditommaso
left a comment
There was a problem hiding this comment.
Hi, thanks for this. Indeed makes sense. I left a couple of comments
modules/nextflow/src/main/groovy/nextflow/k8s/client/K8sClient.groovy
Outdated
Show resolved
Hide resolved
modules/nextflow/src/main/groovy/nextflow/k8s/client/K8sClient.groovy
Outdated
Show resolved
Hide resolved
… fix-connection-reset
Signed-off-by: Lehmann-Fabian <fabian.lehmann@informatik.hu-berlin.de>
Signed-off-by: Lehmann-Fabian <fabian.lehmann@informatik.hu-berlin.de>
Contributor
Author
|
Hi @pditommaso, thanks for your feedback. I addressed both and changed it accordingly. |
pditommaso
reviewed
Jun 18, 2021
Member
pditommaso
left a comment
There was a problem hiding this comment.
This looks good. Not understanding why tests are failing tho 😕
Contributor
Author
|
Me neither, I ran it once again locally and it passed all tests. |
Member
|
No idea. I've merged manually. Thanks for this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working with Kubernetes and Nextflow I sometimes got an exception socket-reset, which cases the whole workflow to fail.
This is the exception trace:
Here is my proposed solution: I wrap the call, and retry the API request, if it fails with a socket exception. This solved it for me.
We can discuss, whether to increase/decrease the sleep time and to catch more than SocketExceptions.