~/talk

Fixing a MongoDB Replication Protocol Bug with TLA+

Talkat TLA+ Conference 2019 · on Thursday, 2019-09-12· [databases, distributed-systems]
links:none on file
slides:none on file

The MongoDB replication protocol has a safety bug from 2016 that lets nodes mark entries committed incorrectly and a sequence of liveness bugs in 2018–2019 that prevent commit advancement or create sync‑source cycles that stall replication. A compact TLA+ specification (about 295 lines of TLA+ in one variant, 378 in another) and the TLC model checker expose counterexamples in seconds to minutes — one reproducing the 2016 case explores ~50,000 states in under a minute — and the final solution merges multiple fixes and is backported to correct a 5‑node safety hole.

AI-written summary · about

  1. 0:00Intro
  2. 0:31Talk Outline
  3. 7:05Background Replication in MongoDB
  4. 8:13Bug Timeline
  5. 8:52Heartbeat Commit Point Propagation
  6. 11:14No Available Sync Source
  7. 12:47Sync Source Cycle
  8. 14:33Commit Point Held Back on Stale Nodes
  9. 15:56Initial Solution Fails in 5 Node Replica Set
  10. 17:37MongoDB Replication TLA+ Spec
  11. 19:37Model Checking
  12. 30:40Takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.