Skip to content

Use one durable flush per replacement consensus WAL - #310

Merged
matrixarkai merged 1 commit into
mainfrom
build/checkpoint-publication-sync
Oct 28, 2026
Merged

matrixarkai merged 1 commit into
mainfrom
build/checkpoint-publication-sync

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Update MatrixRaft to 2cab64e so metadata and chunk checkpoint replacement writes flush the complete temporary WAL once before atomic publication. Normal live WAL appends remain synced before returning. The stable lock, retained suffix and parent-directory sync remain in place.

The dependency extends crash recovery coverage to the boundary before the replacement flush. Syscall tracing verified one replacement-file flush instead of ten for a 9 MiB checkpoint, always before publication. This measures I/O calls rather than throughput.

Validation: 26 metadata/chunk consensus process tests passed with one ignored, 13 checkpoint library tests passed, and the locked all-feature/all-target check passed. File formats and the 256 MiB checkpoint limit are unchanged. Larger file-backed application capture and restoration remain outstanding.

@matrixarkai
matrixarkai merged commit 065d1b9 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