apache / apache/incubator-seata
Saga StateMachineRepository#getStateMachineById will replace the last version in cache
Open
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
### Ⅰ. Issue Description
Saga StateMachineRepository#getStateMachineById will replace the last version in cache
### Ⅳ. How to reproduce it (as minimally and precisely as possible)
If the version 2 is the last version of statemachine in db:
1. Invoke StateMachineRepository#getStateMachineById, it returns version 1
2. Then invoke StateMachineRepository#getStateMachine, it also returns version 1. This method is used to get the last version of statemachine.
Contributor guide
Assessment
This issue has not been assessed yet.