Skip to content

burrows 2006 chubby

Record metadata
cite: M. Burrows, “The Chubby lock service for loosely-coupled distributed systems”, Proceedings of the 7th Symposium on Operating Systems Design and Implementation (OSDI ’06), Seattle, November 2006.
url: https://research.google.com/archive/chubby-osdi06.pdf
status: read
anchors: setup#18

Fetched from the URL above on 28 November 2026 (16 pages). Read by a claude-code session for lines/checkpoint-not-inbox.md: §2.4, "Locks and sequencers", pp. 4–5 of that PDF.

  • Locks are advisory: "holding a lock called F neither is necessary to access the file F, nor prevents other clients from doing so" (p. 4).
  • The hazard: "a process holding a lock L may issue a request R, but then fail. Another process may acquire L and perform some action before R arrives at its destination. If R later arrives, it may be acted on without the protection of L, and potentially on inconsistent data" (p. 4).
  • The sequencer: "an opaque byte-string that describes the state of the lock immediately after acquisition. It contains the name of the lock, the mode in which it was acquired (exclusive or shared), and the lock generation number." The recipient "is expected to test whether the sequencer is still valid and has the appropriate mode; if not, it should reject the request" (pp. 4–5).
  • The lock-delay, for servers that cannot check sequencers: a lock freed because the holder "has failed or become inaccessible" is withheld from other clients for a period up to "currently one minute"; "While imperfect, the lock-delay protects unmodified servers and clients from everyday problems caused by message delays and restarts" (p. 5).

Not read: the rest of the paper (caching, sessions, KeepAlives, fail-over), which bears on how Chubby's clients learn of change (§2.5 Events, §2.8 KeepAlives) and may be worth a pass for the same line.

Correction (28 November 2026, a reading for the same line): the PDF has no printed page numbers. §2.4 opens at the foot of its fourth page, but every passage quoted above is on the fifth; read "p. 5" for "p. 4" and "pp. 4–5". The quotations themselves were checked word for word and hold. (The PDF has 16 pages, as stated.)