Conversation
WalkthroughStartDB's purger startup is now configurable via a new RocksDBCloudConfig::run_purger_ flag (default true) surfaced as a command-line/config flag Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as CLI / INI
participant Cfg as RocksDBCloudConfig
participant DS as RocksDBCloudDataStore::StartDB
participant Purger as Purger
CLI->>Cfg: parse rocksdb_cloud_run_purger (default true)
Note right of Cfg: set run_purger_
Cfg->>DS: StartDB(cloud_config)
alt run_purger_ == true
DS->>Purger: initialize & start purger
Note over DS,Purger: purger active during startup/runtime
else run_purger_ == false
DS--xPurger: skip purger setup
Note over DS: proceed without purger
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
56016a4 to
c2e5bce
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
eloq_data_store_service/rocksdb_config.cpp (1)
275-277: LGTM! Flag definition is correct.The flag definition follows the standard pattern with a sensible default of
true(preserving previous behavior). The description is adequate, though you could optionally enhance it to something like "Enable/disable RocksDB cloud storage purger for obsolete file cleanup" for better clarity.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
eloq_data_store_service/rocksdb_cloud_data_store.cpp(2 hunks)eloq_data_store_service/rocksdb_config.cpp(3 hunks)eloq_data_store_service/rocksdb_config.h(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- eloq_data_store_service/rocksdb_config.h
🧰 Additional context used
🧬 Code graph analysis (1)
eloq_data_store_service/rocksdb_config.cpp (1)
rocksdb_config.cpp (2)
CheckCommandLineFlagIsDefault(298-310)CheckCommandLineFlagIsDefault(298-298)
🔇 Additional comments (3)
eloq_data_store_service/rocksdb_cloud_data_store.cpp (1)
325-325: LGTM! Purger is now configurable.The change correctly sources the
run_purgerflag fromcloud_config_.run_purger_instead of hardcoding it totrue. This makes the purger startup behavior configurable as intended, and the value is properly logged on line 338 for observability.eloq_data_store_service/rocksdb_config.cpp (2)
561-566: LGTM! Flag reading follows the established pattern.The implementation correctly reads the flag value with the standard precedence: command-line flag → INI config → default value. This matches the pattern used for other configuration flags throughout the file.
581-581: LGTM! Assignment completes the configuration flow.The assignment correctly stores the resolved flag value to the
run_purger_member, which is then consumed byRocksDBCloudDataStore::StartDB()to control purger initialization.
Summary by CodeRabbit
New Features
Chores