Question

A schedule of three database transactions T1T_1, T2T_2, and T3T_3 is shown. Ri(A)R_i(A) and Wi(A)W_i(A) denote read and write of data item AA by transaction TiT_i, i=1,2,3i = 1, 2, 3. The transaction T1T_1 aborts at the end. Which other transaction(s) will be required to be rolled back?

R1(X)  W1(Y)  R2(X)  R2(Y)  R3(Y)  ABORT(T1)R_1(X)\; W_1(Y)\; R_2(X)\; R_2(Y)\; R_3(Y)\; \text{ABORT}(T_1)
Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2025 answer key

Solution

Identify which transactions read an uncommitted data item written by T1T_1 (dirty reads).

In the given schedule:

  1. T1T_1 writes data item YY via W1(Y)W_1(Y).
  2. Before T1T_1 commits or aborts, both T2T_2 (via R2(Y)R_2(Y)) and T3T_3 (via R3(Y)R_3(Y)) read the uncommitted value of YY written by T1T_1 (a dirty read).
  3. When T1T_1 aborts at the end, the value of YY written by T1T_1 becomes invalid, so both T2T_2 and T3T_3 must be rolled back (cascading rollback).
Final answer

Option (C)

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
Question
15 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.