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

Trans内调用DAO会导致死锁 #517

Closed
LongEth opened this issue Sep 11, 2013 · 1 comment
Closed

Trans内调用DAO会导致死锁 #517

LongEth opened this issue Sep 11, 2013 · 1 comment
Milestone

Comments

@LongEth
Copy link

LongEth commented Sep 11, 2013

其实需求很简单,就是希望通过Trans来实现一组Dao的操作,如果Dao任何一个操作出错,就全部Rollback,结果使用Try包裹Trans.bengin/Trans.rollback/Trans.close内包含Dao操作,如果Dao包含Update等修改语句,下次再进入,程序就没了反应,原因是Trans死锁鸟。

@wendal
Copy link
Member

wendal commented Sep 11, 2013

贴出重现的代码

wendal added a commit that referenced this issue Oct 14, 2013
@wendal wendal closed this as completed Oct 14, 2013
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