{
  "slug": "unserializable-write",
  "term": "Unserializable write",
  "aliases": [
    "unserializable writes"
  ],
  "definition": "An unserializable write is a storage failure in which recovered contents cannot be reconciled with an operation order allowed by the known write history.",
  "note": "In power-fault testing, the relevant history is the partial order of synchronous writes, given by when each was issued and completed. Each 4 KB test record carries a timestamp, a worker identifier and an operation count, so the recovered state can be checked against that order even when every record passes its own checksum. The count is a lower bound, because an observed order such as A3 A1 A2 shows that at least one write was misplaced without identifying which. [zheng-power] [zheng-tocs]\n\nIn the 2016 study, SSD#2 had serialization errors in 100% of injected faults on Linux 2.6.32 and 4% on 2.6.33-rc1. Table VIII averages errors over only error-bearing faults. Neither quantity is a field failure rate. [zheng-tocs]\n\nThe cited block-device fsync patch adds an explicit cache flush after syncing buffered blocks. It also maps an unsupported-flush result (EOPNOTSUPP) to success. Its return value alone therefore cannot prove that hardware flushed volatile data. This is historical code behavior, not a statement about every current I/O path. [linux-block-flush]\n\nThis storage-recovery usage is not a claim that a database offers serializable transaction isolation. [zheng-power]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Self-describing records let a checker regenerate the expected operation stream after recovery without a separate log.",
      "citationIds": [
        "zheng-tocs"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Measured error rates depend on the host software stack as well as the device, so a single test configuration does not characterize a drive.",
      "citationIds": [
        "zheng-tocs"
      ]
    }
  ],
  "related": [
    "power-loss-protection",
    "lost-write",
    "torn-write",
    "checksum",
    "crash-consistency"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "zheng-power",
      "title": "Zheng et al., FAST 2013, section 3.2: Detecting global failures",
      "url": "https://www.usenix.org/system/files/conference/fast13/fast13-final80.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "zheng-tocs",
      "title": "Zheng et al.: Reliability Analysis of SSDs Under Power Fault, TOCS 34(4), article 10, section 5.5.2 and Tables VII-VIII (2016)",
      "url": "https://doi.org/10.1145/2992782",
      "accessed": "2026-11-11"
    },
    {
      "id": "linux-block-flush",
      "title": "Linux commit ab0a9735e069: blkdev: flush disk cache on ->fsync (2009), block_fsync and error handling",
      "url": "https://github.com/torvalds/linux/commit/ab0a9735e06914ce4d2a94ffa41497dbc142fe7f",
      "accessed": "2026-11-11"
    }
  ],
  "updated": "2026-11-12",
  "provenance": [
    "zheng-power is the FAST 2013 paper, read in section 3.2 for the record format and the detection of global failures.",
    "TOCS section 5.5.2 and Tables VII-VIII checked through indexed author-copy text on 2026-11-11; direct author URLs returned HTML rejection, not PDF content.",
    "Historical device results were not reproduced. The Linux commit was checked directly; it does not establish the cause of every observed device error.",
    "On 2026-11-12, section 5.5.2 and Tables VII-VIII were rechecked in the paper transcription associated with author Mark Lillibridge at https://www.academia.edu/82465808/Reliability_Analysis_of_SSDs_Under_Power_Fault; the upstream Linux patch was also rechecked."
  ]
}
