Three-phase commit protocol: Difference between revisions

Content deleted Content added
FrescoBot (talk | contribs)
m Bot: fixing title linked in text
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 '''[[acknowledgement (data networks)|ACK]]''' message back and commits.
 
==Motivation==