Skip to content

Persist Raft commit index across restarts - #41

Closed
mrayva wants to merge 56 commits into
resetius:masterfrom
mrayva:persist-commit-boundary
Closed

mrayva wants to merge 56 commits into
resetius:masterfrom
mrayva:persist-commit-boundary

Conversation

@mrayva

@mrayva mrayva commented Nov 15, 2026

Copy link
Copy Markdown

Adds MRFTD004 with a recovered commit boundary, persists Raft commit advances before follower acknowledgements and application processing, and prevents truncation or snapshot replacement from discarding committed entries. MRFTD001–003 remain readable with SnapshotIndex as their conservative commit floor. Dynamic membership remains unsupported. Validation: full ASan/UBSan CTest 21/21 and Release CTest 14/14.

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.
@mrayva

mrayva commented Nov 15, 2026

Copy link
Copy Markdown
Author

Superseded by the fork review PR: mrayva#56

@mrayva mrayva closed this Nov 15, 2026
@mrayva
mrayva deleted the persist-commit-boundary branch November 15, 2026 01:46
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