-
Notifications
You must be signed in to change notification settings - Fork 412
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
fix pagestorage v2 restore #5384
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. Reviewer can indicate their review by submitting an approval review. |
136de97
to
d39d830
Compare
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
47ad3f7
to
35d1d99
Compare
@lidezhu: 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. Instructions 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-unit-test |
Coverage for changed files
Coverage summary
full 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: #5387. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #5388. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #5389. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #5390. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #5391. |
In response to a cherrypick label: new pull request created: #5392. |
In response to a cherrypick label: new pull request created: #5393. |
* This is an automated cherry-pick of #5384 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> * Update PageStorage.h * fix static analysis * update format code Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Co-authored-by: lidezhu <47731263+lidezhu@users.noreply.github.com> Co-authored-by: lidezhu <lidezhu@pingcap.com>
What problem does this PR solve?
Issue Number: close #5385
Problem Summary: When restart, ps v2 will try to reuse old page file for writing. But if no file can be used for writing, it will create new page file. But the file id of the new page file is determined by the max file id in writing page file set which is empty now. And it will create
PageFile_1_0
in this case for writing which may override previous data.What is changed and how it works?
Make sure new page file id is larger than all current page files at restart.
Check List
Tests
Side effects
Documentation
Release note