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...

Referring to the accompanying figure, which of the following is pointed to by callout G?

A. the Start button B. the Search box C. the Pinned items list D. shut down options

Computer Science & Information Technology

What is considered the first step in formulating a security policy?

A. risk analysis B. elimination of threats C. risk reduction D. system monitoring

Computer Science & Information Technology

Clareon software downloads the DPA and remittance data and converts it into a(n) ________ format.

(a) ASP. (b) EDI. (c) ERP. (d) XML.

Computer Science & Information Technology

A hypothetical disk drive had the following parameters. The seek time for a short seek is given as 1 + 0.2?n ms, and the seek time for a long seek is 3 + 0.003n ms. Assume that short seeks are less than 200 tracks. Suppose the drive accesses the following track numbers sequentially. What is the approximate seek time required (neglecting rotational latency).

1234, 1235, 1237, 1200, 2456, 2470, 1240, 1242, 100, 2120. What will be an ideal response?

Computer Science & Information Technology