crash-corruption-ambiguity · research · also Crash-corruption entanglement

Crash-corruption ambiguity

Crash-corruption ambiguity occurs when the same observed stored state is consistent with both an interrupted update and corruption after persistence.

Related Observatory article: Read on hesela.com

A log-entry checksum mismatch can come from a crash during the update or from corruption after safe persistence. If the small, atomically written persist record is absent, a crash explains it and the partial entry can be discarded. If the record is present and the two writes were not ordered, a final entry cannot be attributed, although a later entry or record proves corruption. A replicated design marks such an entry corrupted for distributed recovery rather than discarding acknowledged data. [1]

A study injecting single file-system faults into eight widely used distributed storage systems found that recovery code often conflates the two problems: a mismatch caused by corruption triggered crash recovery, which could roll back a committed, acknowledged transaction. It also cites a field study of 1.53 million disk drives over 41 months in which more than 400,000 blocks had checksum mismatches. [3]

Relations

related
Journal checksum, Crash consistency, Checksum, Write-ahead log, Torn write, Doublewrite buffer, Protocol-aware recovery

Advantages

  • Correct attribution lets a node discard a crash-torn tail locally and avoid an unnecessary distributed recovery. [1]

Limitations

  • Ordering an entry before its persist record would remove the ambiguity but needs an additional expensive fsync in the critical path of every log update. [1]

Citations

  1. Alagappan et al., Protocol-Aware Recovery for Consensus-Based Storage, FAST 2018, section 3.3.3 (accessed 2026-10-23)
  2. Ganesan et al. Redundancy Does Not Imply Fault Tolerance: Analysis of Distributed Storage Reactions to Single Errors and Corruptions. FAST 2017. (accessed 2026-11-12)

Further reading

  1. Hesela: Ext4 replay, checksum failure paths and ambiguous tails (accessed 2026-10-17)
Sources & caveats
  • par read 2026-10-23, section 3.3.3, for the persist-record logic and the unresolvable final entry.
  • fault-study read 2026-10-23, sections 2 and 4.2, for the eight-system fault study and the cited checksum-mismatch field data.
  • Both papers describe protocol models and fault injection, not present-day field failure rates.
  • A companion analysis with a constructed one-byte example is listed but not used in prose.

JSON: /data/terms/crash-corruption-ambiguity.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Crash-corruption ambiguity. Hesela. 2026-11-12. https://hesela.dev/terms/crash-corruption-ambiguity/