-
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 UniversalPageStorage #6723
add UniversalPageStorage #6723
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. |
8437c64
to
2f1bf6e
Compare
f17e28c
to
715d2fc
Compare
/run-all-tests |
dbms/src/Storages/DeltaMerge/tests/gtest_segment_test_basic.cpp
Outdated
Show resolved
Hide resolved
/rebuild |
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
1ac1f50
to
abd2791
Compare
/rebuild |
824ed20
to
f616c31
Compare
/rebuild |
Co-authored-by: JaySon <tshent@qq.com>
f616c31
to
643f5d1
Compare
/rebuild |
/rebuild |
: page_id(INVALID_PAGE_ID) | ||
explicit Page(PageIdU64 page_id_) | ||
: page_id(page_id_) | ||
, is_valid(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.
Not sure, but may be we can treat empty string as not valid.
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.
The Page
struct is both used in PS V3
and Uni PS
, so the PageId can be UInt128 or String.
And we extract a UInt64
from them and pass it to Page
for easy adaption to previous code. So page_id
should be a UInt64
here. Or it should be removed totally.
{ | ||
WriteBufferFromOwnString buff; | ||
writeString(prefix, buff); | ||
UniversalPageIdFormat::encodeUInt64(page_id, buff); |
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.
This makes our universal page id hard to interpret by human (because we always format as hex). Not sure whether this is a good idea..
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.
We will also provide page-ctl tools for uni ps to dump its data. So this should be ok.
/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. 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: acde588
|
/run-unit-test |
/run-all-tests |
/rebuild |
/run-integration-test |
/run-unit-test |
ref pingcap#6728 Signed-off-by: ywqzzy <592838129@qq.com>
What problem does this PR solve?
Issue Number: ref #6728
Problem Summary:
What is changed and how it works?
PageDirectory
BlobStore
a template;UniversalPageStorage
which receive a string type page id;Check List
Tests
Side effects
Documentation
Release note