-
Notifications
You must be signed in to change notification settings - Fork 8.9k
bugfix: fix using @GlobalTransactional in provider ShouldNeverHappenException thrown #5462
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
Conversation
slievrly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
funky-eyes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个pr作为临时解决方案是可以的,在处于参与者时,直接将originalException抛出去即可,但是更深层次去看,参与者是否有必要在transactionalTemplate里包装异常为ExecutionException? 如果业务一样自己用我们的模板方法去使用,最终抛出的是ExecutionException,而不是业务异常,是否应该在transactionalTemplate中处理?绕过外层GlobalTransactionalInterceptorHandler中的catch
funky-eyes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个pr作为临时解决方案是可以的,在处于参与者时,直接将originalException抛出去即可,但是更深层次去看,参与者是否有必要在transactionalTemplate里包装异常为ExecutionException? 如果业务一样自己用我们的模板方法去使用,最终抛出的是ExecutionException,而不是业务异常,是否应该在transactionalTemplate中处理?绕过外层GlobalTransactionalInterceptorHandler中的catch
|
@pengten Pls add change in the following files: |
…everHappenException will be thrown
…everHappenException will be thrown
…everHappenException will be thrown
…erHappenException will be thrown
…erHappenException will be thrown
…everHappenException will be thrown
Ⅰ. Describe what this PR did
fix #5460
#5459
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews