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

optimize: support default configuration of tx-service-group #4144

Merged
merged 9 commits into from
Nov 20, 2021

Conversation

tanzzj
Copy link
Contributor

@tanzzj tanzzj commented Nov 18, 2021

Ⅰ. Describe what this PR did

  1. 支持默认的事物分组配置,使事务分组配置成为进阶配置,入门和单集群模式下不需要再配置事务分组,降低入门门槛;

  2. 将默认事务分组value由 my_test_tx_group 修改为 default_tx_group, 避免歧义;

  3. seata 1.5先向下兼容 my_test_tx_group,seata 2.0 去掉my_test_tx_group,全局替换为default_tx_group,并且增加了warn级别的logger日志提醒用户及时替换默认value;

  4. 将单测中写死的事务分组名修改为静态全局变量;

  5. 修改一些代码规范问题

Ⅱ. 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

@funky-eyes
Copy link
Contributor

/home/runner/work/seata/seata/spring/src/main/java/io/seata/spring/annotation/GlobalTransactionScanner.java:67:15: Unused import - io.seata.common.DefaultValues.DEFAULT_TX_GROUP. [UnusedImports]
Audit done.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slievrly
Copy link
Member

image

@slievrly slievrly added this to the 1.5.0 milestone Nov 18, 2021
"please change your default configuration as soon as possible " +
"and we don't recommend you to use default tx-service-group's value provided by seata",
DEFAULT_TX_GROUP_OLD, DEFAULT_TX_GROUP);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

移动到scanner避免20s重复打日志

@tanzzj tanzzj changed the title feature: support default configuration of tx-service-group optimize: support default configuration of tx-service-group Nov 18, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #4144 (59bd5b3) into develop (6f877fa) will increase coverage by 0.30%.
The diff coverage is 28.57%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4144      +/-   ##
=============================================
+ Coverage      49.46%   49.76%   +0.30%     
- Complexity      3757     3764       +7     
=============================================
  Files            700      700              
  Lines          23608    23608              
  Branches        2913     2913              
=============================================
+ Hits           11678    11749      +71     
+ Misses         10738    10663      -75     
- Partials        1192     1196       +4     
Impacted Files Coverage Δ
...eata/core/rpc/netty/NettyClientChannelManager.java 70.00% <0.00%> (ø)
...re/properties/SpringCloudAlibabaConfiguration.java 50.00% <0.00%> (-16.67%) ⬇️
...ta/spring/annotation/GlobalTransactionScanner.java 28.78% <0.00%> (-0.30%) ⬇️
...boot/autoconfigure/properties/SeataProperties.java 41.02% <100.00%> (ø)
...configure/properties/client/ServiceProperties.java 56.52% <100.00%> (+1.97%) ⬆️
...io/seata/core/rpc/netty/AbstractNettyRemoting.java 12.98% <0.00%> (-1.30%) ⬇️
...erver/storage/file/session/FileSessionManager.java 56.93% <0.00%> (+8.02%) ⬆️
...ava/io/seata/server/metrics/MetricsSubscriber.java 72.46% <0.00%> (+53.62%) ⬆️
...java/io/seata/server/metrics/MeterIdConstants.java 100.00% <0.00%> (+100.00%) ⬆️

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@funky-eyes funky-eyes merged commit ea89cec into apache:develop Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants