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
feature: The data source proxy mode can be selected as AT or XA #2913
feature: The data source proxy mode can be selected as AT or XA #2913
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2913 +/- ##
=============================================
- Coverage 50.26% 50.25% -0.01%
- Complexity 3047 3050 +3
=============================================
Files 599 599
Lines 19415 19430 +15
Branches 2381 2384 +3
=============================================
+ Hits 9758 9764 +6
- Misses 8679 8690 +11
+ Partials 978 976 -2
|
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 @sharajava @xingfudeshi PTAL
This reverts commit 4a9c4dd
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.
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.
建议再深入考虑一下是否必要增加一个配置项。
其他方面个人觉得 OK 的。
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.
it's ok to me
Ⅰ. Describe what this PR did
feature: The data source proxy mode can be selected as AT or XA
通过配置启用自动代理时:
seata.dataSourceProxyMode=AT #默认值,可以不用手动配置
或
seata.dataSourceProxyMode=XA
通过注解启用自动代理时:
@EnableAutoDataSourceProxy(dataSourceProxyMode = 'AT')
或
@EnableAutoDataSourceProxy(dataSourceProxyMode = 'XA')
Ⅱ. 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