resolve-lock: resolve locks, TS of which is bigger than safepoint and expired#35403
resolve-lock: resolve locks, TS of which is bigger than safepoint and expired#35403ti-chi-bot merged 24 commits intopingcap:masterfrom
Conversation
Signed-off-by: joccau <zak.zhao@pingcap.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
/draft |
Signed-off-by: joccau <zak.zhao@pingcap.com>
Signed-off-by: joccau <zak.zhao@pingcap.com>
Co-authored-by: MyonKeminta <9948422+MyonKeminta@users.noreply.github.com>
Co-authored-by: MyonKeminta <9948422+MyonKeminta@users.noreply.github.com>
Signed-off-by: joccau <zak.zhao@pingcap.com>
Signed-off-by: joccau <zak.zhao@pingcap.com>
Signed-off-by: joccau <zak.zhao@pingcap.com>
a012a26 to
5022f11
Compare
|
/run-all-tests |
Signed-off-by: joccau <zak.zhao@pingcap.com>
Signed-off-by: joccau <zak.zhao@pingcap.com>
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/4791d36b074447811779dcdafb212452e3de5a0c |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: ae056d5 |
|
@joccau: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
/run-all-tests |
|
/run-check_dev_2 |
Signed-off-by: joccau zak.zhao@pingcap.com
What problem does this PR solve?
Issue Number: close #35428
Problem Summary: During the
log backupin TiKV endpoints, it maybe cause legacy locks if thetidb-servercrash when commit a transaction. This situation causes that:log-backuptask will keep checkpoint-ts from advancing and set service-safe-point to keep MVCC data not being GC, which keeps the GC-safepoint not advancing.What is changed and how it works?
tryResolveLocksTS( tryResolveLocksTS = now() - 5 min)tryResolveLocksTSCheck List
Tests
Manual test
tidb-serveras above figure, after kill
tidb-server, the legacy locks keep the checkpoint-ts inbackup-logfrom advancing for a while. Aftertidb-serverresolves these legacy locks, the checkpoint-ts advanced normally.Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.