In this lesson · topic 3 of 7
Topic 3
Crash a coordinator and count the locks
8 min read
What the lab runs
Two transactions arrive each tick. Each asks every participant to vote. With a small chance a participant votes no. With a chance you set, the coordinator crashes after collecting yes votes, and its participants are left holding locks until it recovers.
Thirty percent of the transactions touch one hot row. If a stuck transaction holds the lock on it, a new transaction that wants the row is turned away. That count is how you see the damage.
Predict before you press play
Things to try
- Set coordinator crash to 0 and read how many are turned away.
- Set it to 5 and raise the downtime to 90 ticks.
- Choose to ask the other participants and compare the stuck count.
- Choose to abort after a timeout and read the split outcomes.
- Raise participants to 8 and read how the commit share falls.
The full-page lab has a guided experiment for each of these.