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 (see
pages 521-3). 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...

A special character, such as * or ?, that can be used as a part of a search term is called a:

A) search character. B) wildcard. C) format marker. D) search symbol.

Computer Science & Information Technology

When you use someone else's computer, it is proper computer ________ to return it to the condition that you found it

Fill in the blank(s) with correct word

Computer Science & Information Technology