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

Don't fail ContinueAsNew command if parent namespace doesn't exist #2767

Merged

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Apr 25, 2022

What changed?
Don't fail ContinueAsNew command if parent namespace doesn't exist.

Why?
ContinueAsNew can be called for the same namespace only, but internally mutable state supports different parent namespace. In case if this feature will ever be used, with this PR, subsequient calls to ContinueAsNew won't fail and won't store parent namespace name (only Id).

How did you test it?
Existing tests.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner April 25, 2022 21:10
if err != nil {
return err
if err == nil {
parentNamespace = parentNamespaceEntry.Name()
Copy link
Contributor

Choose a reason for hiding this comment

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

i believe you only need to pass in namespace ID, so conversion is not necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

No :-(. Name is stored in event attributes.

@alexshtin alexshtin merged commit 02542f9 into temporalio:master Apr 26, 2022
@alexshtin alexshtin deleted the feature/c-as-n-parent-namespace branch April 26, 2022 19:31
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