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 parent close policy processor for deleted namespace #2664

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

alexshtin
Copy link
Member

What changed?
Fix parent close policy processor for deleted namespace.

Why?
Due to bug, TerminateWorkflow was still called even if namespace is deleted and not found in namespace registry.

How did you test it?
New unit test.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner March 29, 2022 00:41
@alexshtin alexshtin force-pushed the fix/missing-child-workflow branch from a2c3a26 to dd07122 Compare March 29, 2022 00:41
Comment on lines +1401 to +1402
case nil:
case *serviceerror.NotFound:
Copy link
Member Author

Choose a reason for hiding this comment

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

switch err.(type) {
case nil, *serviceerror.NotFound:
case nil:
case *serviceerror.NotFound:
Copy link
Member

Choose a reason for hiding this comment

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

Fix the request cancel case below as well?

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 🤦^2.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated unit test also.

@alexshtin alexshtin merged commit b87a3ea into temporalio:master Mar 29, 2022
@alexshtin alexshtin deleted the fix/missing-child-workflow branch March 29, 2022 03:11
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