Repository navigation
Store plain_rewritable disk metadata in the separate '__meta' layout; add flat object storage directory structure - #65751
Conversation
plain_rewritable disk metadata in the separate __meta layout
plain_rewritable disk metadata in the separate __meta layoutplain_rewritable disk metadata in the separate '__meta' layout
|
This is an automated comment for commit 9b4e02e with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
f06f229 to
d821056
Compare
145827c to
f3ed773
Compare
74b2faa to
b133b81
Compare
c67f8ae to
acff253
Compare
|
Should we also make the directory structure flat - avoid extracting common prefixes? |
|
@alexey-milovidov With a flat directory structure, as I understand it, each directory will have a unique pseudo-random name, possibly with a prefix reflecting the depth of the MT path (if #65321 is implemented). Thus, the information that 'B is a child of A' will not be reflected in the flat structure paths. We have an in-memory map with the virtual MT paths (e.g., 'store/cbf/cbfff232-0df0-48f2-86b5-5bb39c897173/4_6_6_1/') as keys and the object storage paths as values. If it's okay to use this map as the source of truth for directories' direct children, I can make the structure flat. Alternatively, S3 paths may be in a form of But, this is not a 'flat' structure. |
Yes, this is what I meant: use a flat structure (where the directories are near each other) and reconstruct the directory hierarchy from the metadata files. PS. About adding the depth in the name - probably it does not make sense after that. |
acff253 to
8095aa4
Compare
Since the regular MergeTree file paths won't be stored in the in-memory map, I think it still makes sense. |
c6068af to
1025259
Compare
Co-authored-by: Kseniia Sumarokova <[email protected]>
…ectStorage.cpp Co-authored-by: Kseniia Sumarokova <[email protected]>
…ectStorage.cpp Co-authored-by: Kseniia Sumarokova <[email protected]>
821aba5 to
9b4e02e
Compare
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20240803) * fix build due to ClickHouse/ClickHouse#65751 * Fix build due to #6558 --------- Co-authored-by: kyligence-git <[email protected]> Co-authored-by: Chang Chen <[email protected]>
An example of object_storage layout after the change:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Store the
plain_rewritabledisk directory metadata in__metalayout, separately from the merge tree data in the object storage. Move theplain_rewritabledisk to a flat directory structure.Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):