wal-batch-atomicity-via-commit-record

Status: IN

A batch write is only considered complete if its trailing COMMIT record is present and passes CRC; incomplete batches (missing commit) are discarded during replay

Source: entries/2026/05/28/topic-lsm-crash-recovery-wal-format.md

Example

self._seq_num += 1
data = _encode_record(self._seq_num, OP_COMMIT, b"", b"")
self._fd.write(data)
self._do_sync(force=True)

JSON