Skip to content

Spool incoming consensus checkpoints to temporary files - #308

Merged
matrixarkai merged 1 commit into
mainfrom
build/checkpoint-receive-spooling
Oct 28, 2026
Merged

matrixarkai merged 1 commit into
mainfrom
build/checkpoint-receive-spooling

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Update MatrixRaft to f41a032 so metadata and chunk consensus peers stage incoming checkpoint fragments in temporary files beside their journals. Partial transfers retain only received bytes on disk and are discarded on expiry or I/O failure without acknowledging failed writes. Checksums and canonical protobuf validation still gate completed transfers.

Validation: 26 metadata/chunk consensus process tests passed with one ignored, 13 checkpoint library tests passed, and the all-feature/all-target build check passed with locked dependencies. The dependency CI completed successfully.

This reduces memory retained during partial incoming transfers. Final decoding, outgoing checkpoints and application capture still use complete buffers, and the 256 MiB checkpoint limit remains. This change does not establish full distributed production readiness.

@matrixarkai
matrixarkai merged commit 97928fe into main Oct 28, 2026
5 checks passed
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.

2 participants