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

嵌套事务无法回滚 #341

Open
xiao528037 opened this issue Nov 20, 2022 · 1 comment
Open

嵌套事务无法回滚 #341

xiao528037 opened this issue Nov 20, 2022 · 1 comment

Comments

@xiao528037
Copy link

官方Demo中
order-server调用account-server,在account-server中再调用stock-server,stock-server异常,只有order-server回滚,account-server抛出了异常,但是不会回滚,

是不支持起嵌套事务吗?

@clclo121
Copy link

clclo121 commented Sep 1, 2023

我也看到这部分的bug,在account刚开始拦截后,当前action状态还是try状态,一旦发生异常,直接就将当前的分支事务给remove了,不会走cancel或者revert,因为事务日志已经没有了。如果需要处理,可以考虑在这部分做一个本地事务,如果嵌套调用失败了,就回滚当前的事务,但是会出现锁资源的问题,事务一直阻塞无法提交,并发量一旦大起来,这里会出现大量阻塞

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