keep delete entry when dump snapshot#5357
Conversation
|
[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. |
|
/rebuild |
|
/rebuild |
1 similar comment
|
/rebuild |
|
/run-all-tests |
|
/run-unit-test |
2 similar comments
|
/run-unit-test |
|
/run-unit-test |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
/rebuild |
1 similar comment
|
/rebuild |
Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: JaySon <tshent@qq.com>
|
We also need a cherry-pick on the release-6.1 branch? In case we may suggest some users to turn V3 on in v6.1.1 or later |
|
/merge |
|
@lidezhu: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. 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. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: b4ab254 |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created: #5370. |
What problem does this PR solve?
Issue Number: close #5230
Problem Summary: when enable ps v3, after doing large transaction update and restart tiflash multiple times, tiflash cannot restart correctly.
Update:
For example:
What is changed and how it works?
Previously, when dump snapshot for PageDirectory, we will remove obsolete entries if it is marked deleted. But the entry may have an upsert entry in later wal file which is not included in the snapshot. So if we remove the delete mark for the entry, the later upsert entry cannot be deleted after restart.
So we keep the last valid entry and the delete entry when dump snapshot.
Check List
Tests
Side effects
Documentation
Release note