Closed zyy17 closed 3 days ago
[!WARNING]
Rate limit exceeded
@zyy17 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 45 minutes and 4 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 2256eb16f49eadebf45ab7cb84883a13ebc6b1e2 and ff46a5a14748a3908267c3d71ec2af048f9cdaf9.
The recent updates introduce a new constant, DEFAULT_DATA_HOME
, set to "/tmp/greptimedb"
, standardizing the default storage path across multiple configuration files and modules. Key configurations and default paths within DataNode options, InvertedIndexConfig, and various example configuration files have been modified to use this constant, promoting consistency and centralized configuration management.
Files/Paths | Change Summaries |
---|---|
src/common/config/src/lib.rs |
Introduced and exported new constant DEFAULT_DATA_HOME as "/tmp/greptimedb" . |
src/datanode/src/config.rs |
Updated StorageConfig to use common_config::DEFAULT_DATA_HOME and modified functions to align with this update. |
src/.../datanode.rs |
Adjusted imports to include StorageConfig . |
src/mito2/src/config.rs |
Changed intermediate_path in InvertedIndexConfig 's default implementation to use join_dir(common_config::DEFAULT_DATA_HOME, "index_intermediate") . |
config/config.md |
Updated region_engine.mito.inverted_index.intermediate_path to /tmp/greptimedb/index_intermediate/ . |
config/datanode.example.toml |
Adjusted intermediate_path setting to /tmp/greptimedb/index_intermediate/ . |
config/standalone.example.toml |
Modified intermediate_path setting to /tmp/greptimedb/index_intermediate/ . |
tests-integration/tests/http.rs |
Updated intermediate_path configuration to /tmp/greptimedb/index_intermediate/ . |
Oh coding paths, now aligned, In
/tmp/greptimedb
they bind, With constants in place, Storage paths embrace, Order in configs defined.
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.58%. Comparing base (
ef935a1
) to head (ff46a5a
).
@evenyag @zhongzc PTAL
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Some minor refactoring:
Expose
DatanodeBuilder::build_object_store_manager()
The scenario is the following code:
Expose
MitoConfig::sanitize()
to initialize Mito config outside the crate;2. Set default value forintermediate_path
instead of empty value(it will failed to create a access layer if usingopen_compaction_region()
with default Mito config) (cc @zhongzc);Checklist
Summary by CodeRabbit
New Features
Documentation
Configuration