Three-phase commit protocol: Difference between revisions

Content deleted Content added
m fixed a link
Cohort: Link to the page for the general concept of an ack in networking.
Line 29:
===Cohort===
# The [[Cohort (computer science)|cohort]] receives a '''canCommit?''' message from the coordinator. If the cohort agrees it sends a '''Yes''' message to the coordinator and moves to the prepared state. Otherwise it sends a '''No''' message and aborts. If there is a failure, it moves to the abort state.
# In the prepared state, if the cohort receives an '''abort''' message from the coordinator, fails, or times out waiting for a commit, it aborts. If the cohort receives a '''preCommit''' message, it sends an '''[[ACKacknowledgement (computingdata networks)|ACK]]''' message back and commits.
 
==Motivation==