Assume a cohort in the two-phase commit protocol crashes in each of the following situations. When it restarts later, explain what it does and why.
(a) Before receiving the prepare message.
(b) After receiving the prepare message but before it votes
(c) After sending its vote message saying it is ready to commit
(d) After receiving the commit message but before it completes its commit processing
(a) It aborts because the coordinator will abort the entire transaction when it does not receive a reply to its prepare message.
(b) It aborts because the coordinator will abort the entire transaction when it does not receive a reply to its prepare message.
(c) It sends a message to the coordinator asking what the nal status of the transaction was and then acts accordingly
(d) It completes its commit processing.
You might also like to view...
The ________ function could be used to capitalize the first letter of each word in a text string
Fill in the blank(s) with correct word
?Transitionis a technique of creating the illusion of movement by displaying a sequence of changing images in rapid succession.
Answer the following statement true (T) or false (F)