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 2018/07/17 07:12:29 UTC
[GitHub] airbaby commented on issue #223: Dubbo事务补偿问题
airbaby commented on issue #223: Dubbo事务补偿问题
URL: https://github.com/apache/incubator-servicecomb-saga/issues/223#issuecomment-405483048
是的,C事务抛出中断异常,不补偿是正常的; 但是B事务执行成功了,但是没有调用补偿(cancel方法); 运行了dubbo demo方法,也并没有执行补偿,test-b表状态是run没有恢复为init;
执行地址格式: serviceInvoke/CExceptionWhenAbAc
你好,我使用的dubbo版本是2.5.3;是不是dubbo版本或者部署alpha-server部署有问题;
在2018年7月17日 14:49,Willem Jiang<no...@github.com> 写道:
请问C事务中断是抛异常吗?因为你使用了@transactional, 如果服务抛异常, 对应的数据库提交动作就不会执行。 不调用C的补偿方法是正确的。 但是B的补偿方法是需要调用的, 这个在Dubbo示例的代码里面是能够正常执行的。 https://github.com/apache/incubator-servicecomb-saga/blob/master/acceptance-tests/acceptance-pack-dubbo-demo/src/test/resources/CExceptionWhenAbAc_scenario.feature
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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