In two-phase commit, a coordinator first asks participants to prepare. A participant that votes yes durably records enough state to fulfill a future commit and typically retains locks or other protections. If any participant votes no, the coordinator can decide abort. It may decide commit only after all required participants vote yes. It durably records the decision and communicates it to participants, who finish accordingly.
A prepared participant cannot simply abort on timeout. The coordinator may already have committed and told another participant, with only this participant’s reply delayed. Forgetting the prepare state would then produce a split outcome. Basic two-phase commit can block when the decision is unavailable. Replicating the coordinator through consensus improves decision availability while its quorum is reachable, but cannot guarantee progress under every partition or missing participant. Two-phase commit’s phases are not the two phases of Basic Paxos.
A yes vote survives uncertainty about the decision
The two phases of two-phase commit create different kinds of evidence. During preparation, each yes vote says that participant can carry out commit and will retain its prepared obligation. During decision, the coordinator chooses commit only after every required participant has prepared successfully. A majority of participant yes votes is not enough. If Ada and Bo both hold essential pieces of a transfer, Ada's yes cannot replace Bo's no. A replicated participant may internally need a quorum to preserve its yes vote, but that quorum counts replicas of one participant, not distinct transaction participants.
Suppose both shards prepare and the coordinator durably records commit. It sends commit to Ada, then crashes before Bo receives it. Ada completes the debit. Bo still has a prepared credit. From Bo's local evidence, another execution remains possible in which the coordinator never received Ada's yes and chose abort. Bo cannot distinguish these executions by waiting for its own timer to expire. Its timeout can trigger a recovery query, but cannot justify choosing whichever outcome would release local resources fastest. In the commit execution, unilateral abort would make the participants disagree.
The durable prepare record must therefore be sufficient after a process restart. If Bo restarts, sees no record of its earlier yes, and treats the credit as abandoned, it can violate the obligation the coordinator relied on. If the coordinator restarts after recording commit but forgets that decision, it can issue an inconsistent abort. Durability is needed on both sides of the protocol, but the records have different contents. The participant retains the promised work and transaction status. The coordinator retains the authoritative outcome and enough identity information to communicate it correctly.
Replicating the coordinator changes the failure that makes its decision unavailable. If its decision log remains accessible through a healthy consensus quorum, a new coordinator process can recover the recorded outcome and continue notification. That does not make a missing participant optional. Before commit is decided, every participant still needs to prepare. After commit is decided, an unavailable participant may delay completion of its local work. Losing access to the coordinator's own quorum can also prevent recovery of the decision. Replication improves decision availability under its assumptions rather than proving unconditional termination.
Distinguish message retries from new decisions as you read the model below. A repeated commit notification should cause a participant already committed to confirm the same outcome, not apply the debit twice. A repeated prepare should not create a second reservation of funds for the same transaction. Durable state transitions constrain these responses. The table shows one permitted ordering of preparation, decision, and partial notification. Its highlighted rows are a reading sequence, not a scheduler that explores crashes or validates an arbitrary transaction system. Additional executions in this section are paper cases, with their assumptions stated explicitly.