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 CreateWorkflowModeContinueAsNew for SQL #5413

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented Oct 3, 2023

What changed?
Update CreateWorkflowModeContinueAsNew of SQL to check if the run ID from the request matches the current run ID.
And also makes the behavior the same as NoSQL implementation, see https://github.com/uber/cadence/blob/v1.2.4/common/persistence/nosql/nosqlExecutionStoreUtil.go#L715

Why?
This is to make sure the behavior is the same as NoSQL implementation. And without this check, concurrent workflow resets could result in multiple open workflows with the same workflow id, and one of them will get stuck forever.

How did you test it?
eyeball check,

Potential risks

Release notes

Documentation Changes

Copy link
Member

@davidporter-id-au davidporter-id-au left a comment

Choose a reason for hiding this comment

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

took me quite a long time for me to undertand this change. Anyway, lgtm

@Shaddoll Shaddoll merged commit 765099e into cadence-workflow:master Oct 5, 2023
@Shaddoll Shaddoll deleted the sql-reset branch October 5, 2023 19:10
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