Remove mutex from DataStoreService#225
Conversation
|
Caution Review failedThe pull request is closed. Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/mongo/db/modules/eloq/src/eloq_kv_engine.cpp (1)
554-658: Hardcoded is_single_node forces StartService into bootstrap/single-node mode
is_single_nodeis set totrue(line 556), so(opt_bootstrap || is_single_node)always yields true and skips proper multi-node initialization. Implement real single-node detection (e.g.ngConfigs.size()==1 && ngConfigs[0].size()==1), remove the TODO, and verify multi-node startup.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/mongo/db/modules/eloq/src/eloq_kv_engine.cpp(1 hunks)src/mongo/db/modules/eloq/store_handler(1 hunks)src/mongo/db/modules/eloq/tx_service(1 hunks)
🔇 Additional comments (1)
src/mongo/db/modules/eloq/store_handler (1)
1-1: Validate submodule commit and changes
The submodule update from b3e8d0e6638553e8000fb512db73c1f3704e09e4 to 57d1ffcb10bac1517b68be745d6fe6da0b757f92 could not be fetched locally—confirm both SHAs exist on the remote and verify that the changes instore_handlerremove the mutex inDataStoreServiceand integrate with the new centralizedStartServiceAPI.
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/mongo/db/modules/eloq/src/eloq_kv_engine.cpp (1)
579-583: Implement dynamic single-node detection instead of hardcoding
The stubbool is_single_node = true;(src/mongo/db/modules/eloq/src/eloq_kv_engine.cpp:581) causesStartService(opt_bootstrap || is_single_node)to always evaluate true, breaking multi-node startup. Replace with a real cluster-topology check before merging.
🧹 Nitpick comments (1)
src/mongo/db/modules/eloq/src/eloq_kv_engine.cpp (1)
682-683: Refine the comment for clarity.The comment "the data store will start data store if needed" contains redundant phrasing.
Apply this diff to improve clarity:
- // setup local data store service, the data store will start data store if needed. + // Setup local data store service. The service will start the data store if needed. bool ret = Eloq::dataStoreService->StartService((opt_bootstrap || is_single_node));
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/mongo/db/modules/eloq/src/eloq_kv_engine.cpp(1 hunks)src/mongo/db/modules/eloq/store_handler(1 hunks)src/mongo/db/modules/eloq/tx_service(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- src/mongo/db/modules/eloq/tx_service
🚧 Files skipped from review as they are similar to previous changes (1)
- src/mongo/db/modules/eloq/store_handler
Summary by CodeRabbit