Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that 2PC is used as a commit protocol. 4. [20 pts] Suppose that 2PC is used as a commit protocol. Consider the following parts

Suppose that 2PC is used as a commit protocol.

image text in transcribed

4. [20 pts] Suppose that 2PC is used as a commit protocol. Consider the following parts of recovery sub-scenarios for a distributed transaction T with coordinator C and two participating sites P1 and P2: 11 P2 checks its log and then aborts. 12 P1 sends query status request to P2 and then commits. 1.3 P1 sends query status request to P2 and then waits for messages from C 14 P1 doesn't checks its log, but do T. Consider the following cases (a) P1 fails after receiving a commit message for T. (b) Pl fails after receiving an abort message for T. (c) The coordinator site for T fails before sending a commit message. (d) P1 fails after sending a ready message for T, and then the coordinator site for T fails after sending a commit message Pl fails after sending a ready message for T, and at the same time, the coordinator site for T also fails. (e) For each of the recovery sub-scenarios specify a group of above cases that are possible for that sub-scenario. Your answer should be represented as the following table with an explanation Sub-scenario Possible cases (e.g., (a).(b),...) 1.2 1.3 4. [20 pts] Suppose that 2PC is used as a commit protocol. Consider the following parts of recovery sub-scenarios for a distributed transaction T with coordinator C and two participating sites P1 and P2: 11 P2 checks its log and then aborts. 12 P1 sends query status request to P2 and then commits. 1.3 P1 sends query status request to P2 and then waits for messages from C 14 P1 doesn't checks its log, but do T. Consider the following cases (a) P1 fails after receiving a commit message for T. (b) Pl fails after receiving an abort message for T. (c) The coordinator site for T fails before sending a commit message. (d) P1 fails after sending a ready message for T, and then the coordinator site for T fails after sending a commit message Pl fails after sending a ready message for T, and at the same time, the coordinator site for T also fails. (e) For each of the recovery sub-scenarios specify a group of above cases that are possible for that sub-scenario. Your answer should be represented as the following table with an explanation Sub-scenario Possible cases (e.g., (a).(b),...) 1.2 1.3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions