-
Notifications
You must be signed in to change notification settings - Fork 409
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 the bug for restoring data with duplicated page id #4889
Fix the bug for restoring data with duplicated page id #4889
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. |
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
dbms/src/Storages/DeltaMerge/tests/gtest_dm_storage_delta_merge.cpp
Outdated
Show resolved
Hide resolved
/rebuild |
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/run-all-tests |
670a4c7
to
cf8409b
Compare
This reverts commit cdaea05.
cf8409b
to
8e84bc3
Compare
do | ||
{ | ||
// Can't find any entries in current ns_id | ||
if (iter->first.high != ns_id) | ||
{ | ||
break; | ||
} | ||
|
||
// Check and return whether this id is visible, otherwise continue to check the previous one. | ||
if (iter->second->isVisible(UINT64_MAX - 1)) | ||
{ | ||
return iter->first.low; | ||
} | ||
|
||
// Current entry/ref/external is deleted and there are no entries before it. | ||
if (iter == mvcc_table_directory.begin()) | ||
{ | ||
break; | ||
} | ||
|
||
iter--; | ||
} while (true); |
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.
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/merge |
@JaySon-Huang: 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. 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. |
This pull request has been accepted and is ready to merge. Commit hash: 055e4bb
|
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/merge |
@JaySon-Huang: 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. 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. |
This pull request has been accepted and is ready to merge. Commit hash: cb236c1
|
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/run-integration-test |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/merge |
@JaySon-Huang: 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. 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. |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
@JaySon-Huang: 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. |
/rebuild |
/run-integration-test |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
What problem does this PR solve?
Issue Number: ref #3594
Problem Summary:
#4872
#4849
We fix those two bugs with previous PRs, but those changes introduce new misbehavior for TiFlash. Find a better way to fix those bugs.
What is changed and how it works?
Fix reusing same page_id for different kind by:
VersionedPageEntries:: createNewEntry/createNewExternal/createNewRef/createNewExternal/createNewRef
run into invali stateOther changes:
PageStorage->getMaxId
PageStorage->getMaxId
now ignore the invisible idmeta_max_id
, usePageEntry.isValid()
to check whether page 1 is existed or nottiflash/dbms/src/Storages/DeltaMerge/DeltaMergeStore.cpp
Lines 246 to 247 in 3e46ac2
Check List
Tests
Side effects
Documentation
Release note