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

bugfix: fix retry commit unsuccess when record subMachineInst failed #3325

Merged

Conversation

anselleeyy
Copy link
Contributor

Ⅰ. Describe what this PR did

fix: 当子状态机实例创建失败后,修复找不到上一次子状态机实例,导致重试一直失败问题

Ⅱ. Does this pull request fix one issue?

fixes #3324

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

throw new ForwardInvalidException(
"Cannot find sub statemachine [" + subStateMachine.getStateMachineName() + "]",
FrameworkErrorCode.ObjectNotExists);
return startNewStateMachine(startParams, engine, stateInstance, subStateMachine);
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to use originalStateInst

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, use originalStateInst instead

Copy link
Contributor

@long187 long187 left a comment

Choose a reason for hiding this comment

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

LGTM

@l81893521 l81893521 added this to the 1.5.0 milestone Dec 9, 2020
@l81893521 l81893521 added the module/saga saga module label Dec 9, 2020
Copy link
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

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

LGTM

@long187 long187 merged commit 7ba2e81 into apache:develop Dec 9, 2020
@anselleeyy anselleeyy deleted the feature/fix_subMachine_retryCommit_failed branch December 11, 2020 03:32
@wangliang181230 wangliang181230 modified the milestones: 1.5.0, 1.4.1 Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/saga saga module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: saga 模式下,子状态机实例如果创建失败,无法恢复
4 participants