-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][txn] fix error in recoverTracker.handleCommittingAndAbortingTransaction() #18924
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
| @@ -129,7 +130,6 @@ public void replayComplete() { | |||
| } else { | |||
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.
better to move this line, because
https://github.com/apache/pulsar/pull/18924/files#diff-70bdccda00334bdcc596cb6fea9f166021fc858af8c0432a3ee86a6911150d07R123
in some case the tc will not recover success
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.
@congbobo184 I have moved future complete after changeToReadyState().
2e29625 to
6346f64
Compare
liangyepianzhou
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.
Good catch!
Codecov Report
@@ Coverage Diff @@
## master #18924 +/- ##
=============================================
- Coverage 46.17% 33.77% -12.40%
+ Complexity 10359 6408 -3951
=============================================
Files 703 623 -80
Lines 68845 59104 -9741
Branches 7382 6146 -1236
=============================================
- Hits 31788 19963 -11825
- Misses 33448 36470 +3022
+ Partials 3609 2671 -938
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…gTransaction() (apache#18924) Fixes apache#18923 ### Motivation As described in apache#18923, recoverTracker.handleCommittingAndAbortingTransaction() fail when TC recover. ### Modifications when transactionLog.replayAsync() finish, complete TC future.
Fixes #18923
Motivation
As described in #18923, recoverTracker.handleCommittingAndAbortingTransaction() fail when TC recover.
Modifications
when transactionLog.replayAsync() finish, complete TC future.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: