You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/09/24 03:42:09 UTC

[GitHub] [servicecomb-pack] coolbeevip commented on issue #562: 服用调用问题

coolbeevip commented on issue #562: 服用调用问题
URL: https://github.com/apache/servicecomb-pack/issues/562#issuecomment-534375173
 
 
   > 我们现在有三个服务作为客户端,调用顺序为 A -->B -->C,在C出现异常时,不能执行B的补偿方法,而 A --> B, A -- > C ,这种情况在C出异常时,是可以执行B的补偿方法的,这是为什么呢?是不是你们不支持这种调用方式 A-->B-->C.
   > ps:B -->C 是直接通过feign调用的
   
   按照我的理解,你的 A->B->C的方式不需分布式事务吧?C如果出现异常,这个异常不会逐级传递给A吗?就像
   
   C catch exception ->  C 本地事务回滚 -> C throw excetion -> B catch exception  -> B 本地事务回滚 -> B throw exception -> A catch exception -> A 本地事务回滚

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services