Skip to content

Enable guarded live joint membership - #42

Closed
mrayva wants to merge 66 commits into
resetius:masterfrom
mrayva:feat/live-joint-membership
Closed

mrayva wants to merge 66 commits into
resetius:masterfrom
mrayva:feat/live-joint-membership

Conversation

@mrayva

@mrayva mrayva commented Nov 15, 2026

Copy link
Copy Markdown

Summary

  • Add durable-store TRaft APIs to propose a joint voter set and append its stable successor.
  • Require current-term commitment, persisted commit/voter metadata, staged learner catch-up acknowledgements for added voters, and retention of the active leader in the new set.
  • Validate incoming configuration records and a simulated replacement suffix before persisting a higher term or mutating the log; refresh voter roles and quorum after append, commit, and suffix replacement.
  • Document the remaining boundary: leader removal, hot TRaftServer role reconciliation, and membership-aware snapshot transfer are not implemented.

Validation

  • ASan/UBSan CTest: 21/21 passed.
  • Release CTest: 14/14 passed.
  • Deterministic durable-store coverage exercises voter addition and nonleader removal, joint and stable commit propagation, invalid-chain rejection before term mutation, suffix rollback, and role recovery after restart.

Self-reviewed; no independent reviewer approval is claimed.

mrayva added 30 commits November 7, 2026 22:10
* Reject corrupt persistence on recovery and fix log truncation state

* Fail-stop on live storage errors instead of escaping into network handlers

* Cover replacement after live truncation without reopening storage
* Add Linux durable state with atomic publication and crash-boundary tests

* Verify Raft election and application replay across durable-state restart
)

* Preserve forwarded client cookies and bind routes to leader and peer lifecycle

* Clarify forwarding marker value and peer lifecycle terminology
* Preserve snapshot chunk identity across retries to avoid ACK starvation

* Protect active reconnects from stale reader failures
* Pin active snapshot transfers across ongoing compaction

* Avoid competing connect deadline wakeups after completion
Add runtime learner target management to TRaftServer, connect staged targets to server draining, and document endpoint lifecycle and remaining membership limits.
Check the embedded boundary, declared size, and voter list before a covered InstallSnapshot fast-path acknowledgement.
Protect stable configuration metadata across direct memory and durable snapshot installs.
Reject standalone application checkpoints that conflict with authoritative stable snapshot identity.
* Track learner commit acknowledgements

* Cover learner snapshot commit acknowledgement
@mrayva mrayva closed this Nov 15, 2026
@mrayva
mrayva deleted the feat/live-joint-membership branch November 15, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant