A three-phase commit protocol has the following parts:

Phase 1: is the same as for two-phase commit.

Phase 2: the coordinator collects the votes and makes a decision; if it is No, it aborts and informs participants that voted Yes; if the decision is Yes, it sends a preCommit request to all the participants. participants that voted Yes wait for a preCommit or doAbort request. They acknowledge preCommit requests and carry out doAbort requests.

Phase 3: the coordinator collects the acknowledgments. When all are received, it Commits and sends doCommit to the participants. participants wait for a doCommit request. When it arrives they Commit.

Explain how this protocol avoids delay to participants during their ‘uncertain’ period due to the failure of the coordinator or other participants. Assume that communication does not fail.


Phase 1: is the same as for two-phase commit.

Phase 2: the coordinator collects the votes and makes a decision; if it is No, it aborts and informs participants that voted Yes; if the decision is Yes, it sends a preCommit request to all the participants. participants that voted Yes wait for a preCommit or doAbort request. They acknowledge preCommit requests and carry out doAbort requests.
Phase 3: the coordinator collects the acknowledgments. When all are received, it Commits and sends
doCommit to the participants. participants wait for a doCommit request. When it arrives they Commit.

Explain how this protocol avoids delay to participants during their ‘uncertain’ period due to the failure of the coordinator or other participants. Assume that communication does not fail.

Computer Science & Information Technology

You might also like to view...

Class StringBuilder is used to:

a) create strings b) manipulate strings c) modify strings d) All of the above

Computer Science & Information Technology

Match each item with a statement below.

A. A command used in CentOS 7 to provide a "snapshot" of the processes that are running B. A number used by CentOS 7 to uniquely identify a process C. The level of performance that you can expect during typical usage and workloads D. A system that acts like a file system but is specially constructed to interface with specific areas in a system E. A command that displays the amount or percentage of time a computer system or associated hardware is functioning and available for use F. A performance problem that occurs when multiple processes are competing for resources and all of them converge on the same resource at once G. A command used to stop or abort a process in a program or operating system H. A command that usually reports average values on process status, memory consumption, I/O operations, and CPU usage since the last reboot I. A command used in CentOS 7 to run a command repeatedly J. command-line reporting and control information system in CentOS 7 that directly interfaces with the kernel and is stored in memory

Computer Science & Information Technology

The Convert to SmartArt Graphic button is on the Home tab in the ________ group

A) Font B) Editing C) Drawing D) Paragraph

Computer Science & Information Technology

Your new software project manager is OK with requirements that are not fully specified up front.  He recommends a team-based approach to development.  He is very likely to be a proponent of the _______ approach to software development.

A. Waterfall B. outsourced C. Agile D. packages solution

Computer Science & Information Technology