wxrqforever opened a new issue, #6796: URL: https://github.com/apache/incubator-seata/issues/6796
您好,想请教一下TCC模式回滚时候的服务端的调用顺序问题 场景描述: 假设有上层的应用A和a方法,会调用下游的应用B、C的tryB(),tryC()方法 class A{ void a(){ for(1:10){ call B.tryB(); } for(1:10){ call C.tryC(); } } } class B{ void tryB(){ } void commitB(){ } void cancelB(){ } } class C{ void tryC() { } void commitC(){ } void cancelC() { } } 问题: 如果在tryC的执行的10次循环中第5次失败了,那么server在回调cancel方法是会按什么方式回调(不考虑网络问题)?是会按分支事务的注册顺序,逆序串行调用,还是并发调用?如果是并发的,那是不是对于回滚时候有数据依赖场景,即必须先回滚这个再回滚另外一个的这种,是不是saga更适用? 期待您的回复。 -- 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: notifications-unsubscr...@seata.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org For additional commands, e-mail: notifications-h...@seata.apache.org