Suppose that the coordinator of a transaction crashes after it has recorded the intentions list entry but before it has recorded the participant list or sent out the canCommit? requests. Describe how the participants resolve the situation. What will the coordinator do when it recovers? Would it be any better to record the participant list before the intentions list entry?

What will be an ideal response?


As the coordinator is the only server to receive the closeTransaction request from the client, the workers will not know the transaction has ended, but they can time out and unilaterally decide to abort the transaction. They are allowed to do this because they have not yet voted. When the coordinator recovers it also aborts the transaction.
An apparent advantage of recording a worker list earlier (before the coordinator fails), is that it could be used to notify the workers when a coordinator recovers, with a view to avoiding the need for timeouts in workers. Unfortunately workers cannot avoid the need for timeouts because the coordinator may not recover for a very long time.

Computer Science & Information Technology

You might also like to view...

Heavy computer users who experience red, dry, itchy eyes should _____.

A. consider the use of artificial tears B. consider the use of older, but more human friendly CRT monitors C. keep their focus on their screens for long hours D. avoid blinking often

Computer Science & Information Technology

With the Glowing Edges filter, the ____ setting adjusts the contrast between the edges and the background.

a. Edge Width b. Edge Brightness c. Smoothness d. none of the above

Computer Science & Information Technology

What is Kant's second categorical imperative?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A simple variable is unrelated to any other variable in memory.

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

Computer Science & Information Technology