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

当我使用UseTran在调用基类方法的时候 会出现锁库的情况。 #360

Open
YuNingOvo opened this issue Apr 17, 2024 · 5 comments
Labels
BUG Something isn't working

Comments

@YuNingOvo
Copy link

YuNingOvo commented Apr 17, 2024

image
image

不知道是我用法不对,还是不支持这样的事务。

@LemonNoCry
Copy link
Collaborator

基于你截图的代码部分,没有看出来你的问题

可以看一下 TransactionController GetTestTranPropagation
压测没有任何问题

@YuNingOvo
Copy link
Author

基于你截图的代码部分,没有看出来你的问题

可以看一下 TransactionController GetTestTranPropagation 压测没有任何问题

image
image

我在嵌套事务中引发了异常 无法回滚上层的事务,于是我在上层的事务中 再次引发异常 依然无法回滚上层事务

@LemonNoCry
Copy link
Collaborator

测试正常
image
image

两次执行Rollback
image

@YuNingOvo
Copy link
Author

测试正常 image image

两次执行Rollback image

我调用控制器中的方法时,是正常回滚的。image
当我在定时任务中去调用时,就会出现这种情况。
image

@LemonNoCry
Copy link
Collaborator

复现出该问题,存在死锁

@LemonNoCry LemonNoCry added the BUG Something isn't working label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants