apache / servicecomb-pack

Apache ServiceComb Pack is an eventually data consistency solution for micro-service applications. ServiceComb Pack currently provides TCC and Saga distributed transaction co-ordination solutions by using Alpha as a transaction coordinator and Omega as an transaction agent .
https://servicecomb.apache.org/
Apache License 2.0
1.93k stars 435 forks source link

补偿事务没有执行 #755

Open HelloYcc opened 2 years ago

HelloYcc commented 2 years ago

补偿事务是怎么执行流程的?哪个类在执行?

HelloYcc commented 2 years ago

txevent这张表有事务事件数据,command和txtimeout数据都是空的

HelloYcc commented 2 years ago

image image

WillemJiang commented 2 years ago

因为只有一个子事务, 这个子事务失败了之后是不需要回退的。 具体Saga事务示例可以参考 https://github.com/apache/servicecomb-pack/tree/master/demo/saga-spring-demo