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: add get local global status #2351
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2351 +/- ##
=============================================
+ Coverage 51.75% 51.77% +0.01%
- Complexity 2695 2696 +1
=============================================
Files 517 517
Lines 16760 16760
Branches 2034 2034
=============================================
+ Hits 8674 8677 +3
+ Misses 7275 7273 -2
+ Partials 811 810 -1
|
f333252
to
c103bf4
Compare
@@ -145,8 +145,9 @@ private void rollbackTransaction(GlobalTransaction tx, Throwable ex) throws Tran | |||
triggerAfterRollback(); | |||
// 3.1 Successfully rolled back | |||
throw new TransactionalExecutor.ExecutionException(tx, | |||
tx.getStatus().equals(GlobalStatus.RollbackRetrying) ? TransactionalExecutor.Code.RollbackRetrying : | |||
TransactionalExecutor.Code.RollbackDone, ex); | |||
null != tx.getLocalStatus() && tx.getLocalStatus().equals(GlobalStatus.RollbackRetrying) |
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.
simplify the conditional judgment
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.
simplify the conditional judgment
PTAL
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.
LGTM
Ⅰ. Describe what this PR did
add get local global status
Ⅱ. Does this pull request fix one issue?
#2325