{
  "slug": "crash-corruption-ambiguity",
  "term": "Crash-corruption ambiguity",
  "aliases": [
    "Crash-corruption entanglement"
  ],
  "definition": "Crash-corruption ambiguity occurs when the same observed stored state is consistent with both an interrupted update and corruption after persistence.",
  "note": "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. [par]\n\nA 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. [fault-study]",
  "status": "research",
  "advantages": [
    {
      "text": "Correct attribution lets a node discard a crash-torn tail locally and avoid an unnecessary distributed recovery.",
      "citationIds": [
        "par"
      ]
    }
  ],
  "limitations": [
    {
      "text": "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.",
      "citationIds": [
        "par"
      ]
    }
  ],
  "related": [
    "journal-checksum",
    "crash-consistency",
    "checksum",
    "write-ahead-log",
    "torn-write",
    "doublewrite-buffer",
    "protocol-aware-recovery"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "par",
      "title": "Alagappan et al., Protocol-Aware Recovery for Consensus-Based Storage, FAST 2018, section 3.3.3",
      "url": "https://www.usenix.org/system/files/conference/fast18/fast18-alagappan.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela",
      "title": "Hesela: Ext4 replay, checksum failure paths and ambiguous tails",
      "url": "https://hesela.com/analyses/ext4-journal-replay-revocation/",
      "accessed": "2026-10-17"
    },
    {
      "id": "fault-study",
      "title": "Ganesan et al. Redundancy Does Not Imply Fault Tolerance: Analysis of Distributed Storage Reactions to Single Errors and Corruptions. FAST 2017.",
      "url": "https://files.usenix.org/s3fs-public/cdn/fast17-ganesan.pdf",
      "accessed": "2026-11-12"
    }
  ],
  "updated": "2026-11-12",
  "provenance": [
    "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."
  ]
}
