-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
*: implement the TxnHeartBeat API for the large transaction #11979
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11979 +/- ##
===========================================
Coverage 81.9618% 81.9618%
===========================================
Files 447 447
Lines 97848 97848
===========================================
Hits 80198 80198
Misses 12111 12111
Partials 5539 5539 |
LGTM |
/run-all-tests |
/rebuild |
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
/rebuild |
Is it expected that go.mod and go.sum has so many changes? I think only updating kvproto shouldn't cause so many changes. |
It's expected. @MyonKeminta |
/run-all-tests tidb-test=pr/881 |
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.
Rest LGTM
/run-all-tests |
/run-all-tests |
/run-integration-common-test tikv=pr/5407 |
1 similar comment
/run-integration-common-test tikv=pr/5407 |
/run-all-tests tikv=pr/5407 |
/run-all-tests tikv=pr/5407 |
/run-unit-test tikv=pr/5407 |
/run-all-tests |
cherry pick to release-3.0 failed |
What problem does this PR solve?
In the implementation of the large transaction, a large transaction may last for a long time, during which we must ensure that the lock of the transaction will not been cleaned up.
So we need a new API in the kvproto to update the TTL of a transaction, namely
TxnHeartBeat
.What is changed and how it works?
Implement the TxnHeartBeat API in the mocktikv, add the unit test.
Check List
Tests
Code changes