CAICAIIs commented on PR #88: URL: https://github.com/apache/incubator-seata-go-samples/pull/88#issuecomment-3988319774
Sample & Testing **Sample Repository**: [incubator-seata-go-samples/tcc/rocketmq](https://github.com/apache/incubator-seata-go-samples/tree/main/tcc/rocketmq) Local Testing For local testing with unmerged PR code: 1. Clone both repositories in the same parent directory: git clone https://github.com/apache/incubator-seata-go.git git clone https://github.com/apache/incubator-seata-go-samples.git 2. Uncomment the replace directive in incubator-seata-go-samples/go.mod: replace seata.apache.org/seata-go/v2 => ../incubator-seata-go 3. Run the sample: cd incubator-seata-go-samples/tcc/rocketmq/cmd go run main.go --mode=commit # Test commit scenario go run main.go --mode=rollback # Test rollback scenario Prerequisites - Seata TC Server (127.0.0.1:8091) - RocketMQ NameServer & Broker (127.0.0.1:9876) Expected Behavior - Commit mode: Message sent and becomes consumable - Rollback mode: Message sent but deleted on rollback -- 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]
