-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
TransactionHook没有被正确clear #6880
Comments
恕我愚钝...这是为hook添加了xid参数,这似乎与我的case关系不大,麻烦再提点一下 |
通过xid区分不同的hook,就不会因为事务嵌套,导致前者的hook被调用 |
我不是嵌套,我是tomcat线程复用导致前一事务设置的hook,被后一事务回滚后触发了。我去看看release note |
我在release note中没有发现有提到该问题的 |
可以先尝试升级下看看 |
好的 我这先先升级后观察观察 |
I have always had a different opinion on this design. I think that the hook should not be thread-local but rather at the method granularity. |
Ⅰ. Issue Description
Ⅱ. Describe what happened
[http-nio-8089-exec-14]
在添加TransactionHook
,实现afterRollback
方法。事务1成功提交。[http-nio-8089-exec-14]
执行了afterRollback
方法内逻辑。Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Minimal yet complete reproducer code (or URL to code):
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
java -version
):1.8uname -a
):The text was updated successfully, but these errors were encountered: