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: check for nil, and add logging to expose root cause of panic in Issue 8968 #9010

Merged
merged 3 commits into from
Jun 22, 2022

Conversation

juliev0
Copy link
Contributor

@juliev0 juliev0 commented Jun 20, 2022

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.

@juliev0 juliev0 marked this pull request as draft June 20, 2022 15:11
Signed-off-by: Julie Vogelman <[email protected]>
Signed-off-by: Julie Vogelman <[email protected]>
@juliev0 juliev0 changed the title fix: add logging to expose root cause of panic in Issue 8968 fix: check for nil, and add logging to expose root cause of panic in Issue 8968 Jun 20, 2022
woc.log.Error(err)
woc.markWorkflowError(ctx, err)
return node, err
}
Copy link
Contributor Author

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.

Copy link
Member

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.

@juliev0 juliev0 marked this pull request as ready for review June 20, 2022 23:30
@sarabala1979 sarabala1979 merged commit 2aa32ae into argoproj:master Jun 22, 2022
@juliev0 juliev0 deleted the 8968-print branch June 22, 2022 15:09
@sarabala1979 sarabala1979 mentioned this pull request Jun 23, 2022
51 tasks
sarabala1979 pushed a commit that referenced this pull request Jun 23, 2022
…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]>
jmeridth added a commit to jmeridth/argo-helm that referenced this pull request Jun 24, 2022
[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]>
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.

3 participants