-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
store: update kvrpc.Cleanup proto and change its behaviour #12212
Conversation
Before this PR, Cleanup always rollback a transaction if it's not committed. After this PR, Cleanup will not rollback a transaction if the lock is active.
Codecov Report
@@ Coverage Diff @@
## master #12212 +/- ##
===========================================
Coverage 81.2941% 81.2941%
===========================================
Files 454 454
Lines 100033 100033
===========================================
Hits 81321 81321
Misses 12926 12926
Partials 5786 5786 |
PTAL @MyonKeminta @coocood @lysu |
/run-all-tests |
/run-all-tests tikv=pr/5471 |
LGTM |
/run-all-tests tikv=pr/5471 |
/run-all-tests tikv=pr/5471 |
/run-all-tests tikv=pr/5471 |
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
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. But I hope if there are more comments in ResolveLocks' logic. I found it difficult to understand.
/run-all-tests |
/run-unit-test |
cherry pick to release-3.0 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @tiancaiamao PTAL. |
What problem does this PR solve?
Check the
TTL
on the primary lock to decide the real status of a transaction.After we update the
TTL
of a transaction, the TTL information on the secondary lock is not accurate.What is changed and how it works?
Before this PR, Cleanup always rollbacks a transaction if it's not committed.
After this PR, Cleanup will not rollback a transaction if the primary lock is active.
Check List
Tests
Side effects
The semantics of Cleanup API change.
Release note