Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC模式下的主事务提交后RPC服务confirm或者cancel异常情况下外抛异常是怎么处理的? #119

Open
caoyangjie opened this issue May 9, 2019 · 2 comments

Comments

@caoyangjie
Copy link

阅读了大佬的源码,不知是否我代码没可以看到位还是怎么样?关于RPC模式下的主事务提交后RPC服务confirm或者cancel异常情况下外抛异常是怎么处理的?代码没看到有对这一块做处理

@caoyangjie
Copy link
Author

在TransactionHook下异步启动的ConsistentGuardian.process函数中,调用publishDemiLogEvent执行
TccMethodExecutor的onDismatch方法 如果rpcClient.callWithNoReturn 中外抛异常,貌似没有做处理。这种情况下,ET是如何让注释回滚的?没有找到具体的逻辑处理代码。这里是不是会导致 主事务提交了而从服务的confirm或者cancel执行失败?

@skyesx skyesx changed the title RPC模式下发现的问题 RPC模式下的主事务提交后RPC服务confirm或者cancel异常情况下外抛异常是怎么处理的? May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants