In the two-phase commit protocol, suppose a cohort crashes in each of the following situations. Explain what should it do when it recovers

(a) It crashed before it sends it vote message

(b) It crashed after it had voted while it was in its uncertain period.

(a) It crashed before it sends it vote message
Solution:
Abort. It knows the coordinator could not have committed the transaction, since it has
not voted.
(b) It crashed after it had voted while it was in its uncertain period.
Solution;
Ask the coordinator was happened, whether the transaction was committed or aborted.

Computer Science & Information Technology

You might also like to view...

someValue++ is an example of the use of the prefix increment operator.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A ____ is an individual dot of light that is the basic unit used to create digital images.

A. pica B. pixel C. point D. link

Computer Science & Information Technology