clear obsolete v2 data for tables that totally transform to ps v3#5373
clear obsolete v2 data for tables that totally transform to ps v3#5373ti-chi-bot merged 2 commits intopingcap:masterfrom
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 |
f204e42 to
5b74225
Compare
|
It looks like we use two strategies for tables' PS and kvstore's PS, can you clarify each of them? @lidezhu |
92b5d91 to
9062fb5
Compare
kvstore's ps v2 will just run once at restart, but table's ps v2 will always run if there is some data left in log storage at restart. So we can safely use some aggressive gc config for kvstore, but we must be carful with tables's ps. Now ps v2 will rotate writing page file if no valid pages in non writeing page files. |
|
/run-all-tests |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
Great! And I think it will be better to put this information in PR comment. @lidezhu |
Done. |
a700c8e to
1b2f221
Compare
Co-authored-by: JaySon <tshent@qq.com>
|
/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: 0443b9d |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
/run-integration-test |
What problem does this PR solve?
Issue Number: close #5336
Problem Summary: After transform from all data from ps v2 to ps v3, there are still some v2 data left which may consume unnecessary disk space.
What is changed and how it works?
When the valid pages in ps v2 is 0, we write a mark file to indicate that ps v2 is deleted. And try to drop v2 data.
And at later restart, if we find that there is are ps v2 delete mark file, we will not restore ps v2 and may try to clear obsolete v2 data if previous drop process was interrupted.
Check List
Tests
alter table ... compact tiflash replica;to transform all data from ps v2 to ps v3;Before restart:


After restart and run compact:
Side effects
Documentation
Release note