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 : optimize logs when global commit/rollback catch an exception #4880

Merged
merged 24 commits into from Feb 6, 2023

Conversation

Bughue
Copy link
Contributor

@Bughue Bughue commented Aug 23, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

TC在 RM的commit遇到异常和返回false时的行为不一致,容易发生误解,这个pr只对日志进行优化

Ⅱ. Does this pull request fix one issue?

fixes #4879

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2022

Codecov Report

Merging #4880 (315b511) into 2.x (12eabb1) will increase coverage by 0.05%.
The diff coverage is 75.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #4880      +/-   ##
============================================
+ Coverage     48.50%   48.55%   +0.05%     
- Complexity     4188     4194       +6     
============================================
  Files           764      764              
  Lines         26876    26877       +1     
  Branches       3357     3358       +1     
============================================
+ Hits          13036    13051      +15     
+ Misses        12453    12436      -17     
- Partials       1387     1390       +3     
Impacted Files Coverage Δ
.../java/io/seata/server/coordinator/DefaultCore.java 53.29% <75.00%> (+5.70%) ⬆️
...in/java/io/seata/server/session/GlobalSession.java 70.30% <0.00%> (+0.37%) ⬆️
...erver/storage/file/session/FileSessionManager.java 49.68% <0.00%> (+0.63%) ⬆️
...in/java/io/seata/server/session/BranchSession.java 79.28% <0.00%> (+0.71%) ⬆️
...o/seata/server/session/AbstractSessionManager.java 65.21% <0.00%> (+2.89%) ⬆️

@CLAassistant
Copy link

CLAassistant commented Dec 12, 2022

CLA assistant check
All committers have signed the CLA.

@slievrly slievrly changed the base branch from develop to 2.x February 6, 2023 06:43
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 added the module/server server module label Feb 6, 2023
@funky-eyes funky-eyes added this to the 2.0.0 milestone Feb 6, 2023
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 slievrly changed the title optimize : optimize logs when RM's commit return an exception and returns false optimize : optimize logs when RM's commit return throw an exception Feb 6, 2023
@slievrly slievrly changed the title optimize : optimize logs when RM's commit return throw an exception optimize : optimize logs when global commit/rollback throw an exception Feb 6, 2023
@slievrly slievrly changed the title optimize : optimize logs when global commit/rollback throw an exception optimize : optimize logs when global commit/rollback catch an exception Feb 6, 2023
@slievrly slievrly merged commit 3b5ec35 into apache:2.x Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TC's behavior is different when RM's commit return an exception and returns false
5 participants