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: Synchronization lock handling in Step/DAG Template level #5081

Merged
merged 9 commits into from
Feb 12, 2021

Conversation

sarabala1979
Copy link
Member

Checklist:

woc.controller.syncManager.Release(woc.wf, node.ID, tmpl.Synchronization)
}
} else {
if !sgNode.Fulfilled() {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a bug. Code is releasing parent lock if child completes

@@ -1785,6 +1785,12 @@ func (woc *wfOperationCtx) executeTemplate(ctx context.Context, nodeName string,
}
}

if node.Fulfilled() {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the right place to check the node status and release the lock.

@sarabala1979 sarabala1979 marked this pull request as ready for review February 11, 2021 00:31
examples/steps.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

Good work. I love how thorough your tests are.

Can I make an ask?

I see this logged a lot:

 controller | time="2021-02-11T08:36:08.398Z" level=info msg="Check the workflow existence"

Could we either:

  1. Make this DEBUG?
  2. Add some fields to it to give it a bit more context? Currently I need to look at the source code to understand it. Most users will not do that.

workflow/controller/operator.go Outdated Show resolved Hide resolved
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
@sarabala1979 sarabala1979 merged commit 75d09b0 into argoproj:master Feb 12, 2021
@simster7 simster7 mentioned this pull request Feb 16, 2021
33 tasks
@simster7 simster7 mentioned this pull request Feb 23, 2021
34 tasks
@simster7 simster7 mentioned this pull request Mar 8, 2021
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.

2 participants