Repository navigation
Persist control-plane heartbeats and membership-safe jumbo placement - #40
Merged
Merged
Conversation
Store node liveness in CELL_CONTROL_PLANE with a monotonic sequence, and send that record from the maintenance loop without installing shard descriptors as routes. Jumbo isolation still sets a route flag. A placement record now says whether a leadership transfer or a same-size voter replacement was actually committed. Transfers use a new Raft TransferLeader RPC. A change that would drop fault tolerance or add a node that has not joined is refused. This does not add a second cell, split server roles, or move shard files. Co-authored-by: RustFS <hello@rustfs.com>
…onic OpenRaft disables the leader lease before TransferLeader is known to succeed, and older peers do not implement that RPC. Jumbo maintenance no longer calls trigger().transfer_leader. Registration is not treated as capability. An already-correct leader is not recorded as this process's move. A voter replacement that reaches the planned set stays in committed_moves even when the route file persist fails. A control-plane rename that then fails the directory sync keeps the new state in memory so a later write cannot roll the sequence backward. Remote heartbeats may advance by at most 64 and a new sequence inside one second is rejected. They remain an unreplicated observation and do not schedule placement. Co-authored-by: RustFS <hello@rustfs.com>
Main now includes the explicit auth opt-in and Raft option loading. Keep those rules and the readiness probes. A receiver with no stored heartbeat row accepts the sender's observation generation and current sequence, including values above 64. The same generation still rejects jumps over 64, stale sequences, conflicting bodies, and fast repeats. A new generation after the sender file is recreated is a new baseline. Heartbeats stay unreplicated observations and do not schedule placement. Co-authored-by: RustFS <hello@rustfs.com>
…plane-increment-bda7 Co-authored-by: RustFS <hello@rustfs.com> # Conflicts: # docs/en/operations.md
A same-sequence generation replacement was accepted inside the one-second window and rewrote CELL_CONTROL_PLANE. Every remote accept that changes the stored row now waits, including that replacement. An identical replay still does not write. The file body must match exactly one layout: the current version 1 with observation generations, or the previous version 1 without them. Both matching is rejected. Generation ids come from getrandom instead of /dev/urandom. Co-authored-by: RustFS <hello@rustfs.com>
cursor Bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
Keep the control-plane observation work from #40 and the anchored backup checks on this branch. Co-authored-by: RustFS <hello@rustfs.com>
This was referenced Nov 19, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Reliability fix on the same pull request. This branch forward-merges current
mainatd9030543ccca15281803de84dddabb5405fd369d(normal merge, not a rebase). That main includes #35, #38, and #36. This pull request is not merged intomain.This does not deliver trillion scale, a second Cell, disaggregated roles, Jumbo file migration, or automatic leadership transfer. Baidu figures in arXiv:2610.32247 are Baidu production metrics, not results of this repository. No-ship stays in force. A first-ship gate and a scale gate remain separate. Nothing is set to auto-merge. CI was not subscribed.
RegisterCellstill fails closed.open_and_servestill rejects every role exceptall-in-one. Commita48d038was not imported. 2PC lease and storage formats were not changed.Detail is in
docs/en/scale-control-plane-status.md.Review findings
transfer_leaderstays disabled. OpenRaft 0.10 marks a transfer and disables the leader lease before any peer answersTransferLeader. Older peers do not implement that RPC. Node registration is not proof they do.reconcile_jumbo_placementdoes not calltrigger().transfer_leader. The handler stays onRaftTransportServicebehind the same bearer interceptor asVote. A 3 second poll is not used.transfer_poll_covers_election(3000, 5000)is false and does not enable the call.[raft]election timeouts from Report readiness from startup state and load Raft options #38 are loaded at group start and are not raced by a transfer poll.committed_movesdoes not treat observation as our operation. An already-correct leader does not appendLeadershipTransferred. A voter replacement recordsVoterReplacedonly after the uniform voter set matches the plan. A route-file persist failure does not drop that entry.renamepublishesCELL_CONTROL_PLANEandsync_dirthen fails, memory keeps the new state and the caller still gets an error.observation_generationand current sequence, including values above 64. The same generation still rejects a jump above 64, a stale sequence, and a conflicting body. A different generation is a new baseline. Every remote accept that changes the stored row, including a same-sequence generation replacement, waits 1 second. An identical replay does not write. This process does not keep retired generations: after the rate window a delayed older generation replaces the row again. That is not a scheduling input. The shared bearer remains the only credential. A bound node instance must be repeated. An address-only registration does not gain a second authenticator, so a bearer holder can still overwrite the observation; they cannot make a later honest generation unreadable by pinning the counter.u128fields absent). If both layouts match, the file is rejected. Generation ids usegetrandom0.4, which is already in this workspace, instead of/dev/urandom.Main merge
maind9030543is merged into this branch. Empty secrets still refuse to serve unlessallow_unauthenticatedis set for a literal loopback IP./livez,/readyz, and/healthzkeepclassify_secret.[raft]timers apply at group start and are not reloaded. Documentation limits from #36 are kept alongside the control-plane limits above. This pull request itself is not merged tomain.Still incomplete
Multi-cell routing, role separation, and moving Jumbo shard files onto another disk are not implemented. A safe automatic leadership transfer is not implemented. Heartbeats are not replicated and are not scheduling truth.
Validation not run
Not executed:
cargo test -p metadb-cluster --lib control_plane_statecargo test -p metadb-cluster --test scale_control_plane_testscargo test -p metadb-server --test control_plane_claim_testscargo test --workspace --lockedcargo fmt --allwas applied.cargo clippy -p metadb-cluster -p metadb-raft -p metadb-server --all-targets --locked --no-deps -- -D warningscompleted with no warnings in those packages. That is a compile/lint check, not a test run.SHAs
db84ee34451ee4d7ad0dad572597f25787c249458b9315a1940722d6a15547b1167bae2339c8474f(parentsdb84ee34andd9030543ccca15281803de84dddabb5405fd369d)c4ef7b82a928c131703e23a44d57be76d909689b