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

Add failure event if target namespace is missed during transfer task processing #2752

Merged
merged 4 commits into from
Apr 22, 2022

Conversation

alexshtin
Copy link
Member

What changed?
Add failure event if target namespace is missed during transfer task processing.

Why?
If namespace is deleted there is a chance that namespace existed when command was proccessed but got deleted when corresponding transfer task was processed. To handle this, corresponding failed event is recorded in caller history.

How did you test it?
New unit tests.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner April 20, 2022 22:47
task.TargetWorkflowID,
task.TargetRunID,
attributes.Control,
enumspb.SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND,
Copy link
Member

Choose a reason for hiding this comment

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

It's rare but namespace not found is also possible here I think. And currently we can't tell from the error if it's workflow not found or namespace not found.

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 actually true for all 3 cases. I plan to add specific error for "namespace is not found" case and I will handle it here properly. Added TODO for now.

@alexshtin alexshtin force-pushed the fix/start-child-ns-validation branch from 5ce93c6 to 4b9f800 Compare April 21, 2022 22:05
@alexshtin alexshtin requested a review from yycptt April 21, 2022 23:38
@alexshtin alexshtin merged commit 4b44fd2 into temporalio:master Apr 22, 2022
@alexshtin alexshtin deleted the fix/start-child-ns-validation branch April 22, 2022 21:30
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