-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: check for nil, and add logging to expose root cause of panic in Issue 8968 #9010
Conversation
Signed-off-by: Julie Vogelman <[email protected]>
Signed-off-by: Julie Vogelman <[email protected]>
Signed-off-by: Julie Vogelman <[email protected]>
woc.log.Error(err) | ||
woc.markWorkflowError(ctx, err) | ||
return node, err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm no expert on this code, but I assume it should error if node is nil. ? If not, I will move the error to where we try to reference node below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here is fine
looking at the original commit
https://github.com/argoproj/argo-workflows/pull/1552/files#diff-f321d4af83fcf8311dc80c0d50c59ac4c240f761206e7bb652709870eb9feb43R1224
The purpose of getting the node here is to retrieve node info after executing node base on template (step/dag..)
One way to look at this is Retry should be based on some kind of node template, so in theory, if there's no template there's no retry.
…Issue 8968 (#9010) * fix: add logging to expose root cause of panic Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]>
[Release Notes](https://github.com/argoproj/argo-workflows/releases/tag/v3.3.8) Includes: - fix: check for nil, and add logging to expose root cause of panic in Issue 8968 (argoproj/argo-workflows#9010) Signed-off-by: jmeridth <[email protected]>
Signed-off-by: Julie Vogelman [email protected]
This is for the purpose of helping to diagnose the panic from Issue 8968. Seems to have panicked either because 'node' or 'retryNode' is nil.