{
  "slug": "crash-consistency",
  "term": "Crash consistency",
  "aliases": [
    "crash consistency"
  ],
  "definition": "Crash consistency is the property that persistent state remains within an application's allowed recovery states after an unexpected interruption.",
  "note": "It is distinct from preserving every acknowledged update: an older, internally consistent state may still violate durability. Pillai et al. distinguish persistence ordering and atomicity, while SQLite documents a concrete rollback-journal protocol. Filesystem metadata consistency alone does not establish that an application's multi-file transaction committed.",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "durable-linearizability",
    "journal-checkpoint",
    "journal-revoke-record",
    "ext4-fast-commit",
    "fsync",
    "writeback-error",
    "copy-on-write",
    "directory-fsync",
    "persistence-ordering",
    "bounded-crash-testing",
    "crash-test-oracle",
    "write-ahead-log",
    "database-checkpoint",
    "torn-write",
    "full-page-write",
    "snapshot",
    "application-consistent-snapshot",
    "rollback-journal",
    "hot-journal",
    "sqlite-super-journal",
    "soft-updates",
    "pactree",
    "twizzler",
    "squirrelfs",
    "persistent-block-cache",
    "ananke",
    "membrane",
    "ccfs"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "pillai-2014",
      "title": "Pillai et al. (OSDI 2014): All File Systems Are Not Created Equal",
      "url": "https://files.usenix.org/s3fs-public/cdn/osdi14-paper-pillai.pdf",
      "accessed": "2026-10-10"
    },
    {
      "id": "sqlite-atomic",
      "title": "SQLite: Atomic Commit",
      "url": "https://www.sqlite.org/atomiccommit.html",
      "accessed": "2026-10-10"
    },
    {
      "id": "hesela-fsync",
      "title": "Hesela: Why retrying a failed fsync does not prove durability",
      "url": "https://hesela.com/analyses/fsync-failure-retry-durability/",
      "accessed": "2026-10-10"
    },
    {
      "id": "hesela-rename",
      "title": "Hesela: Atomic rename is not a durable commit",
      "url": "https://hesela.com/analyses/atomic-rename-directory-durability/",
      "accessed": "2026-10-11"
    },
    {
      "id": "hesela",
      "title": "Hesela. Crash-consistency tests: the oracle is part of the result.",
      "url": "https://hesela.com/analyses/crash-testing-oracles-and-bounds/",
      "accessed": "2026-10-12"
    }
  ],
  "updated": "2026-12-01"
}
