pingqiuandClaude Opus 5.5 ade70da3f4 storage: RED: a failed batch append can revert a later acked write
A batch append whose pwrite lands every record and then reports an error
leaves nextLSN and the head unchanged. The next write reuses the batch's
first LSN and offset; the batch's second record (a higher LSN) stays past
it. After that write's Sync is acknowledged and the process crashes,
recovery republishes the failed batch's stale record over the acked write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:05:51 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%