Describe the recovery procedure if a cohort or coordinator crashes at the following states within the two-phase commit protocol:
a. Before the coordinator sends the prepare message
b. After a cohort has voted but before the coordinator has decided commit or abort
c. After the coordinator has decided to commit but before the cohort has received the commit message
d. After the cohort has committed, but before the coordinator has entered the completion record in the log
a. The transaction aborts.
b. If the coordinator crashes, when it recovers, it aborts the transaction. If a cohort crashes, when it recovers, it contacts the coordinator to find out the status
c. If the coordinator crashes, when it recovers, it resends commit messages to all the cohorts. If a cohort crashes, when it recovers, it contacts the coordinator to find out the status
d. If the coordinator crashes, when it recovers, it resends commit messages to all the cohorts. If a cohort crashes, when it recovers, it does nothing — it has already committed.
You might also like to view...
An Excel spreadsheet can be added to your Word document from the ________ tab
A) Home B) Insert C) Design D) Layout
Which of the following statements is true about creating an image link?
A) An image link must include an ID attribute. B) The href attribute is added to the image tag. C) The image tag must be included within the tags. D) The image link will be underlined the same as a text link.