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

Release shard lock earlier during delete workflow execution #3028

Merged
merged 3 commits into from
Jun 28, 2022

Conversation

alexshtin
Copy link
Member

What changed?
Release shard lock earlier during delete workflow execution.

Why?
Delete workflow execution is 4 step process. Shard lock needs to be holded only during first 2 steps, not all 4.

How did you test it?
Exisitng tests.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner June 27, 2022 19:01
@@ -1004,6 +1004,8 @@ func (s *ContextImpl) DeleteWorkflowExecution(
return err
}

s.wUnlock()
Copy link
Member

Choose a reason for hiding this comment

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

Release when returning errors as well please.

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♂️

@alexshtin alexshtin enabled auto-merge (squash) June 27, 2022 21:23
@alexshtin alexshtin merged commit 69ae0f4 into temporalio:master Jun 28, 2022
@alexshtin alexshtin deleted the feature/move-lock-delete branch June 28, 2022 17:02
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.

None yet

2 participants