-
Notifications
You must be signed in to change notification settings - Fork 38
Update cluster config #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
githubzilla
merged 12 commits into
eloqdata:eloq-10.6.10
from
githubzilla:update_cluster_config
Nov 7, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1e1455d
Update cluster config
githubzilla dcb78d4
Update store_handler
githubzilla 7a8edb8
Update tx_service
githubzilla 72566dd
set create_if_missing when dss is local rocksdb
githubzilla 32f13d2
Update store_handler
githubzilla 3106573
Update store_handler
githubzilla 6378124
Remove commented code
githubzilla 81fba59
Fix comments
githubzilla 115bd79
Update tx
githubzilla 8db1113
Fix ww conflict in test
githubzilla f3e8a7c
Update store_handler
githubzilla eceb14c
Update tx
githubzilla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule store_handler
updated
16 files
Submodule tx_service
updated
23 files
| +110 −0 | include/cc/catalog_cc_map.h | |
| +183 −176 | include/cc/cc_request.h | |
| +37 −12 | include/cc/cc_shard.h | |
| +12 −0 | include/cc/local_cc_shards.h | |
| +5 −2 | include/cc/reader_writer_cntl.h | |
| +5 −15 | include/cc/template_cc_map.h | |
| +6 −1 | include/error_messages.h | |
| +2 −2 | include/fault/log_replay_service.h | |
| +2 −7 | include/proto/cc_request.proto | |
| +1 −1 | include/remote/cc_node_service.h | |
| +9 −1 | include/store/data_store_handler.h | |
| +44 −18 | include/tx_util.h | |
| +28 −32 | src/cc/cc_req_misc.cpp | |
| +30 −33 | src/cc/cc_shard.cpp | |
| +14 −9 | src/cc/local_cc_handler.cpp | |
| +38 −0 | src/cc/local_cc_shards.cpp | |
| +102 −17 | src/cc/reader_writer_cntl.cpp | |
| +27 −4 | src/fault/cc_node.cpp | |
| +52 −6 | src/fault/log_replay_service.cpp | |
| +17 −13 | src/remote/cc_node_service.cpp | |
| +18 −16 | src/remote/remote_cc_request.cpp | |
| +36 −8 | src/store/snapshot_manager.cpp | |
| +2 −0 | src/tx_execution.cpp |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix native_ng_id assignment and stop scanning once the local node is found
Apply this diff to always capture the group id and exit both loops after the first match:
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to ng_config, there always be a candidate for a group, or any node will always be a candidate of a group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@githubzilla Got it — thanks for the clarification. If the local node is always a candidate per ng_config, then guarding native_ng_id behind is_candidate_ is fine.
One small improvement still worth making: break out of both loops as soon as the local node is found (and make the loop variables const). This avoids needless scanning and eliminates any chance of later iterations touching state.
Here’s the minimal change that preserves your current semantics while adding the early breaks:
Optionally, we can add a debug assert to catch config drift in the future:
If you’re good with this micro-change, I can prepare it as an update to the PR.
✏️ Learnings added
🧠 Learnings used