TLA+ Modeling of MongoDB Transactions
summary
Claims a first large TLA+ model of MongoDB multi‑shard transactions with a separate storage module and an automated pipeline that turns TLC traces into unit tests for WiredTiger. The repo reproduces a fractured read when using readConcern=majority, runs full snapshot isolation model checking in ~10 minutes, generates 87,000 tests in ~30 minutes and executes them in ~13 minutes, and measures protocol permissiveness: snapshot 81% / read committed 76% (rises to 79% without prepare conflicts).
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 1:27What are transactions
- 5:26MongoDB transaction history
- 7:34Replica set transactions
- 10:49Distributed transactions
- 15:28Challenges in verification
- 19:28TLA+ model overview
- 21:36Modular modeling approach
- 24:29Isolation checking
- 28:27Snapshot isolation violation
- 33:53Timestamp and prepare conflicts
- 36:05Model checking statistics
- 36:51Model-based verification
- 42:58Test case generation
- 46:54Permissiveness concept
- 50:08Future work and conclusion
