When a transaction T is committed, two-phase commit guarantees that all sites agree on whether the transaction should be committed or aborted. Assume that there are three places to choose from. During the transaction, C1 coordinates with C2 and C3 by sending the message Prepare T, which is received by both of them. After that, C2 and C3 respond to C1 with Ready T. Interestingly, only one of the two computers, C2, has the Commit T log record in its stable storage for some reason. Consider the following scenario: C1 fails soon after 2 has written the necessary log entries to stable storage. During his recovery, C1 is required to participate in certain activities. Explain the fate of transaction T by identifying the additional log entries on C2 and C3 that were created.
When a transaction T is committed, two-phase commit guarantees that all sites agree on whether the transaction should be committed or aborted.
Assume that there are three places to choose from. During the transaction, C1 coordinates with C2 and C3 by sending the message Prepare T, which is received by both of them. After that, C2 and C3 respond to C1 with Ready T. Interestingly, only one of the two computers, C2, has the Commit T log record in its stable storage for some reason.
Consider the following scenario: C1 fails soon after 2 has written the necessary log entries to stable storage. During his recovery, C1 is required to participate in certain activities. Explain the fate of transaction T by identifying the additional log entries on C2 and C3 that were created.
Step by step
Solved in 3 steps