Reading: 8.5
- Coordinator gets participants ready to commit their writes
- Everybody commits
Rules
- Coordinator aborts a transaction iff at least one participants votes to abort it.
- Coordinator commits a transaction iff all participants vote to commit it.
2PC State

- L1: logs transaction id, list of participants, transaction metadata
- L2: logs request and vote
- L3: logs decision
- L4: commit to disk
- L5: cleanup
2PC Failures

- Abort
- Abort
- Abort
- Check vote in log
- Timeout retry
- Check log
- Block