gou60 opened a new issue, #6257:
URL: https://github.com/apache/incubator-seata/issues/6257

   
   
   ### Ⅰ. Issue Description
   
   - [[#5682](https://github.com/seata/seata/pull/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)
   
   1. xxx
   2. xxx
   3. xxx
   
   Minimal yet complete reproducer code (or URL to code):
   
   
   
   ### Ⅴ. Anything else we need to know?
   
   
   ### Ⅵ. Environment:
   
   - JDK version(e.g. `java -version`):
   - Seata client/server version:  
   - Database version:
   - OS(e.g. `uname -a`):
   - Others:


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to