- Published on
Investigation · Part 8 of 20 · What survives a crash
An Append-Only Log That Survives a Torn Last Record
A log of length, CRC-32 and payload, and a recovery that stops at the first bad record. I tested it with kill -9, with my crash simulator and with a fuzzer that cuts the file at every byte. One small format detail decided if 17 records came back as 17 or as 529.