Skip to content

saga mode replay context lost start, issue 5682 reopen !! #6257

Closed
@gou60

Description

@gou60

Ⅰ. Issue Description

  • [#5682] 修复saga模式下replay context丢失startParams问题
    reopen!

Ⅱ. Describe what happened

https://github.com/apache/incubator-seata/blob/2.x/saga/seata-saga-engine/src/main/java/io/seata/saga/engine/impl/ProcessCtrlStateMachineEngine.java

protected Map<String, Object> replayContextVariables(StateMachineInstance stateMachineInstance) {
    Map<String, Object> contextVariables = new HashMap<>();
    **if (stateMachineInstance.getStartParams() == null) {**
        contextVariables.putAll(stateMachineInstance.getStartParams());
    }

Ⅲ. Describe what you expected to happen

https://github.com/apache/incubator-seata/blob/1.8.0/saga/seata-saga-engine/src/main/java/io/seata/saga/engine/impl/ProcessCtrlStateMachineEngine.java

protected Map<String, Object> replayContextVariables(StateMachineInstance stateMachineInstance) {
    Map<String, Object> contextVariables = new HashMap<>();
    **if (stateMachineInstance.getStartParams() != null) {**
        contextVariables.putAll(stateMachineInstance.getStartParams());
    }

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions