Repository navigation
feat(wal): add bounded durable client state with group commit - #401
Merged
beinan merged 1 commit intoOct 20, 2026
Merged
Conversation
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
Recoverable ingestion clients need to persist exact pending requests and ACK checkpoints. Synchronizing a separate file for every writer can put many storage barriers on that path. Add an optional local latest-value journal backed by the existing pinned raft-engine, so independent writers can share a durable batch while retaining their retry identities.
The component binds scope, keys and settings, bounds queued/live-state bytes, reserves rewrite space, and fences every handle after mutation failure. Payload parts stay shared until engine-value assembly. Callers still supply producer ordering, ownership and recovery validation; this does not enable an HTTP SDK or replace the server's durable quorum ACK.
Refs #378.
Testing
The tests cover retained-file process recovery. They do not establish storage power-loss guarantees, distributed producer ownership or end-to-end ingestion throughput.