This is an automated email from the ASF dual-hosted git repository. zhanglei pushed a commit to branch SCB-1321 in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git
commit f32ffba5d60cbd80ab094ac9bb0d8df337660541 Author: Lei Zhang <[email protected]> AuthorDate: Mon Jul 8 20:18:26 2019 +0800 SCB-1321 Update README.md for Saga State Machine Module --- alpha/alpha-fsm/README.md | 62 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/alpha/alpha-fsm/README.md b/alpha/alpha-fsm/README.md index e7ea7b9..b090e7e 100644 --- a/alpha/alpha-fsm/README.md +++ b/alpha/alpha-fsm/README.md @@ -3,10 +3,64 @@ 基于状态机控制事务的状态转换,**这是一个试验性模块** [更多详细内容](https://github.com/apache/servicecomb-pack/blob/SCB-1321/docs/fsm/design_fsm_zh.md) -## Test State Machine +## Clone & Build -``` +```bash git clone -b SCB-1321 [email protected]:apache/servicecomb-pack.git +mvn clean install -DskipTests=true -Pdemo,spring-boot-2 +``` + +## Unit Tests + +```bash cd alpha -mvn clean package -pl alpha-fsm -``` \ No newline at end of file +mvn test -pl alpha-fsm +``` + +## Acceptance Tests + +```bash +mvn clean verify -f acceptance-tests -pl acceptance-pack-akka-spring-demo -Ddocker.useColor=true -Ddocker.showLogs +``` + +## Enabled Saga State Machine Module + +Using `alpha.feature.akka.enabled=true` launch Alpha and Omega Side + +```properties +alpha.feature.akka.enabled=true +``` + +## WIP + +### Alpha + +- [x] State machine design document +- [x] State machine prototype +- [x] State machine prototype unit test +- [x] Receive saga events using the internal message bus +- [x] State machine integration test +- [x] Enable state machine support via parameters +- [x] Verify Akka persistent +- [ ] Verify Akka cluster reliability +- [ ] Save the terminated transaction data to the database +- [ ] Support for in-process nested global transactions +- [ ] Support for cross-process nested global transactions +- [ ] Support for query terminated transaction data by RESTful API +- [ ] Support for query running transaction data by RESTful API +- [ ] Support for query running transaction data by RESTful API +- [ ] Support for query suspended global transaction by RESTful API +- [ ] Support for compensate failed sub-transaction by RESTful API + +### Omega Components +- [x] Enable state machine support via parameters +- [x] State machine calls omega side compensation +- [x] @SagaStart supports thread termination after the timeout + +### Alpha & Omega +- [x] Acceptance-pack-akka-spring-demo pass +- [ ] Add sub-transaction timeout exception for akka acceptance test +- [ ] Add compensation failure for akka acceptance test +- [ ] Add compensation retry success for akka acceptance test + +
