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 non-deterministic error when resetting a parent workflow with a child workflow #1557

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arithran
Copy link

@arithran arithran commented Jul 22, 2024

What was changed

Fix non-deterministic error when resetting a parent workflow with a child workflow

Why?

After migrating from Cadence to Temporal, resetting a parent workflow containing a child workflow results in the following error

"unknown command CommandType: ChildWorkflow, ID: a38af1cf-981c-416a-b0e6-0ba017349c13_17, possible causes are nondeterministic workflow definition code or incompatible change in the workflow definition",

This is because replaying the workflow history in the new run, decision task uses the new run_id to generate the child workflow id in this format <run_id>_<history_id>. Because run_id is different, when trying to look up that child workflow command, there is no match.

Incorporating the following change from Cadence fixes this issue: uber-go/cadence-client#1118

Checklist

  1. Closes Unable to reset workflow with completed childworkflow whose child workflowID is generated by SDK #723

  2. How was this tested:

unit tests manual tests

  1. Any docs updates needed?

…hild workflow

Includes the following change from cadence: uber-go/cadence-client#1118
Fixes the following community issue: : temporalio#723
@CLAassistant
Copy link

CLAassistant commented Jul 22, 2024

CLA assistant check
All committers have signed the CLA.

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.

Unable to reset workflow with completed childworkflow whose child workflowID is generated by SDK
2 participants