Lost write
A lost write is a write reported as completed whose intended update is absent at the required storage location.
An old record can remain internally consistent, including its checksum; physical address agreement alone cannot establish freshness.
Firmware can report success without performing a write, and one drive model answered a cache-flush command with success without committing data, so a power cycle lost the data just written. [1] [2] An earlier study calls the same failure a phantom write, caused by a buggy or misconfigured write-back cache. [4]
If a checksum is stored with its data and both are written in one request, both are lost together, and physical identity does not help because the stale block carries the right number. Detection needs a value kept outside the block and written separately: a checksum in the parent block, a logical identity or a version number. In the paper's model, write-verify catches the lost target write; its read-back result is not a general persistence guarantee. [1] Version mirroring provides a separate comparison with parity metadata. [6]
Recomputing parity from stale data without validating it can destroy the information needed for recovery. In a one-byte XOR example with d1 = 0x66, d2 = 0x44 and a lost update of d0 from 0x11 to 0x22, the polluted parity 0x33 rebuilds d0 as the stale 0x11. [1]
This storage-stack failure differs from a lost update. A later write based on an earlier read can overwrite another actor's intervening change even when individual storage writes work correctly. [7]
Relations
- related
- Serial number arithmetic, Misdirected write, Parity pollution, End-to-end data protection, Identity discrepancy, Version mirroring, Read-after-write verification, I/O shepherding, Lost update
Advantages
- A parent-held checksum can detect stale contents when the expected parent state is available; detection alone does not guarantee recovery. [5]
Limitations
- Its frequency is not available separately, because the field study merges lost and misdirected writes into one class of identity discrepancies. [2]
Citations
- Krioukov et al. Parity Lost and Parity Regained. FAST 2008, sections 3-4.
- Bairavasundaram et al. An Analysis of Data Corruption in the Storage Stack. FAST 2008, sections 2-3 and 6.
- Prabhakaran et al. IRON File Systems. ACM SOSP 2005, sections 2 and 3.
- Zhang, Rajimwale, Arpaci-Dusseau and Arpaci-Dusseau. End-to-end Data Integrity for File Systems: A ZFS Case Study. USENIX FAST 2010.
- Hesela: identical one-bit stamps, opposite required repairs; executable synthetic histories
- Berenson et al. A Critique of ANSI SQL Isolation Levels. SIGMOD 1995, sections 4.1 (P4) and 4.2 (A5B).
Further reading
Sources & caveats
- The model-checking paper is university-led with co-authors from a storage company (NetApp), and the field data come from that company's installed base.
- The model-checking results rest on modelled error rates and assumptions; the phantom-write paper dates from 2005.
- The parent-checksum study injected bit flips only, so its lost-write detection is the authors' statement rather than a tested result.
- The XOR example is a constructed illustration: P = 0x22 ^ 0x33 ^ 0x44 = 0x55; after a reconstruct write of d1 = 0x66, P' = 0x11 ^ 0x66 ^ 0x44 = 0x33, and 0x66 ^ 0x44 ^ 0x33 = 0x11.