Two-phase commit ensures that all sites agree on whether a transaction T should commit or abort.
Assume there are three locations. C1 coordinates the transaction by sending the message Prepare T, which is received by both C2 and C3. C2 and C3 then reply to C1 with Ready T. Only C2 contains the Commit T log record in its stable storage for some reason.
Assume C1 crashes immediately after 2 writes the required log entries to stable storage. C1 must perform certain activities throughout his recuperation. Explain the destiny of transaction T by listing the extra log entries on C2 and C3.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here