-
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
Add dumpIncrementalCheckpoint utility #6928
Add dumpIncrementalCheckpoint utility #6928
Conversation
Signed-off-by: Wish <breezewish@outlook.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. Reviewer can indicate their review by submitting an approval review. |
template <> | ||
typename PageDirectory<universal::PageDirectoryTrait>::DumpCheckpointResult | ||
PageDirectory<universal::PageDirectoryTrait>::dumpIncrementalCheckpoint(const DumpCheckpointOptions & options) |
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.
What about moving this method to UniversalPageStorage
? This method involves both getting snapshot entries from PageDirectory
and reading page data from the BlobStore
And we don't need another DumpCheckpointOptions
in PageDirectory
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.
Good suggestion! I have moved to UniversalPageStorage.
Signed-off-by: Wish <breezewish@outlook.com>
Signed-off-by: Wish <breezewish@outlook.com>
/run-all-tests |
Signed-off-by: Wish <breezewish@outlook.com>
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
Signed-off-by: Wish <breezewish@outlook.com>
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 with small comment
return; | ||
} | ||
|
||
RUNTIME_CHECK(iter->first.sequence == edit.version.sequence); // TODO: If there is a full GC this may be false? |
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.
RUNTIME_CHECK(iter->first.sequence == edit.version.sequence); // TODO: If there is a full GC this may be false? | |
RUNTIME_CHECK(iter->first.sequence == edit.version.sequence, iter->first.sequence, edit.version.sequence); // TODO: If there is a full GC this may be false? |
I think this won't happen, but showing the actual value if this do happen is better
class CPWriteDataSource; | ||
using CPWriteDataSourcePtr = std::shared_ptr<CPWriteDataSource>; |
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.
these seem useless?
Signed-off-by: Wish <breezewish@outlook.com>
/merge |
@breezewish: 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: 5a7ad7b
|
Signed-off-by: Wish <breezewish@outlook.com>
…tiflash into wenxuan/p1/3_dump_checkpoint
/merge |
@breezewish: 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: 3f4cf41
|
Signed-off-by: Wish <breezewish@outlook.com>
/merge |
@breezewish: 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: 7645f39
|
/merge |
@flowbehappy: 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. |
@@ -473,7 +473,7 @@ std::optional<PageEntryV3> VersionedPageEntries<Trait>::getLastEntry(std::option | |||
auto page_lock = acquireLock(); | |||
if (type == EditRecordType::VAR_ENTRY) | |||
{ | |||
for (auto it_r = entries.rbegin(); it_r != entries.rend(); it_r++) | |||
for (const auto & entrie : std::ranges::reverse_view(entries)) |
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.
for (const auto & entrie : std::ranges::reverse_view(entries)) | |
for (auto it_r = entries.rbegin(); it_r != entries.rend(); it_r++) |
keep it not change because we don't support clang 15 in CI by now
This reverts commit 7645f39.
/merge |
@breezewish: 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: ed0cbfb
|
@breezewish: 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 |
/run-integration-test |
1 similar comment
/run-integration-test |
What problem does this PR solve?
Issue Number: ref #6827
Problem Summary:
What is changed and how it works?
Add
UniversalPageStorage::dumpIncrementalCheckpoint
.Check List
Tests
Side effects
Documentation
Release note