Closed zhongzc closed 3 months ago
[!NOTE]
Reviews paused
Use the following commands to manage reviews:
@coderabbitai resume
to resume automatic reviews.@coderabbitai review
to trigger a single review.
The changes introduced revolve around enhancing the index management capabilities within the Mito engine, specifically by adding new configurations for staging, intermediate paths, and sizes. These updates include deprecating the intermediate_path
of inverted_index
, synchronized initialization processes, and incorporating a PuffinManagerFactory
for better index handling and error logging.
Files | Change Summaries |
---|---|
config/datanode.example.toml |
Added options for index management in the Mito engine: staging_path , staging_size , and intermediate_path . Deprecated intermediate_path . |
config/standalone.example.toml |
Similar to datanode configuration, introduced new index options and deprecated older paths. |
config/config.md |
Added documentation for new index configurations and marked certain paths as deprecated. |
src/mito2/src/access_layer.rs |
Added PuffinManagerFactory to manage puffin-related operations, updated struct definitions and logic for explicit error handling. |
src/mito2/src/cache/file_cache.rs |
Added #[allow(unused)] attribute to manage potential unused code warnings. |
src/mito2/src/compaction/compactor.rs |
Incorporated PuffinManagerFactory , adjusted configuration usages to align with new index paths. |
src/mito2/src/config.rs |
Introduced IndexConfig structure for managing index settings, refactored configurations to align with new paths. |
src/mito2/src/error.rs |
Removed PuffinBlobTypeNotFound error, added errors for PuffinInitStager and PuffinBuildReader . |
src/mito2/src/flush.rs |
Simplified how index_write_buffer_size is assigned. |
src/mito2/src/read/scan_region.rs |
Modified ScanRegion initialization to include puffin_manager_factory . |
src/mito2/src/region/opener.rs |
Added PuffinManagerFactory within RegionOpener , updated related methods and initialization processes. |
src/mito2/src/sst/file_purger.rs |
Updated file purger logic to incorporate changes with PuffinManagerFactory . |
src/mito2/src/sst/index.rs |
Added puffin_manager module for managing index operations. |
src/mito2/src/sst/index/applier.rs |
Modified to use PuffinManager for index handling, adjusted error and file reading logic accordingly. |
src/mito2/src/sst/index/applier/builder.rs |
Updated builder pattern to incorporate PuffinManagerFactory , added corresponding fields and methods. |
src/mito2/src/test_util/scheduler_util.rs |
Updated the scheduler environment setup to use PuffinManagerFactory . |
src/mito2/src/worker.rs |
Introduced PuffinManagerFactory for worker initialization, replaced old configurations accordingly. |
src/mito2/src/worker/handle_catchup.rs |
Updated RegionWorkerLoop to include puffin_manager_factory . |
src/mito2/src/worker/handle_create.rs |
Added puffin_manager_factory to RegionWorkerLoop constructor dependencies. |
src/mito2/src/worker/handle_open.rs |
Included puffin_manager_factory in the initialization process of RegionWorkerLoop . |
src/puffin/src/error.rs |
Added External variant to Error enum with corresponding status_code method handling. |
src/puffin/src/puffin_manager/stager.rs |
Added FsBlobGuard and FsDirGuard to public exports, introduced a new BoundedStager async function for directory creation. |
tests-integration/tests/http.rs |
Adjusted test configurations to incorporate new index settings for the Mito engine. |
In a warren deep, our code took flight,
Indices anew, in Mito's light. 🌟
Paths and sizes staged with care,
Handling errors in software's lair.
Puffin guides our files to dance,
In this enhanced engine's advance. 🚀
CodeRabbit cheers with a joyful glance! 🐰
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai pause
Attention: Patch coverage is 93.52332%
with 25 lines
in your changes missing coverage. Please review.
Project coverage is 84.68%. Comparing base (
0f4b9e5
) to head (0982167
). Report is 7 commits behind head on main.
What about aux_path
? @zhongzc auxiliary_path
is so long!
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
4246
What's changed and what's your intention?
Checklist
Summary by CodeRabbit
New Features
staging_path
,staging_size
, andintermediate_path
.region_engine.mito.inverted_index.intermediate_path
in favor ofregion_engine.mito.index.intermediate_path
.Bug Fixes
Refactor
PuffinManagerFactory
for better index management and organization.Documentation