Stuck Holding The Locks
One coordinator, three participants, one distributed transaction over 2PC. The coordinator is a single process with a local transaction log.
| t | coordinator | P1 | P2 | P3 |
|---|---|---|---|---|
| 1 | sends PREPARE to all |
idle | idle | idle |
| 2 | collecting votes | logs PREPARED, holds locks, votes yes |
logs PREPARED, holds locks, votes yes |
logs PREPARED, holds locks, votes yes |
| 3 | writes COMMIT to its own log |
prepared | prepared | prepared |
| 4 | process killed before any COMMIT is sent |
prepared | prepared | prepared |
The coordinator will be down for the next 40 minutes. What may the three participants legitimately do in the meantime?
Sign in to answer questions and track your progress
Sign In