Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. Half of a transfer
  2. 2. Prepare, then commit
  3. 3. Crash a coordinator and count the locks
  4. 4. The coordinator that does not come back
  5. 5. Which timeout is safe
  6. 6. Three phases, and why teams skip them
  7. 7. Votes, blocking and timeouts

Topic 7

Votes, blocking and timeouts

3 min read

Predict first

What does a yes vote in the prepare phase promise?

Predict first

Why does a coordinator crash after the votes block participants?

Predict first

Which timeout is always safe?

Take away

  • Two-phase commit makes a transaction commit on every participant or on none.
  • A yes vote is a promise that cannot be taken back, and a logged decision is final.
  • The price is two rounds, forced log writes and locks held across the network.
  • A coordinator that crashes after the votes leaves participants in doubt, and the locks stay until the outcome is known.
  • A prepared participant must not abort on its own. Asking peers helps only if one of them heard.
  • Three-phase commit avoids blocking by assuming the network does not split, so it is rarely used.

Sources

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms