A schedule of three database transactions , and is shown. and denote read and write of data item by transaction . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back?
GATE CSE 2025Databases › Transactions, Concurrency Control & IndexingVerified
GATE CSE 2025 PYQ: A schedule of three database transactions T 1 , T 2 T_{1}, T_{2} T 1 , T 2 , and T 3 T_{3} T 3 is…
- AOnly
- BOnly
- CBoth andCorrect answer
- DNeither nor
Answer
(C) Both T 2 T_{2} T 2 and T 3 T_{3} T 3
Approach
In this schedule, transaction $T_1$ writes data item $Y$ and later aborts. Both $T_2$ and $T_3$ read $Y$ before that abort, so both have performed dirty reads on data written by an uncommitted and subsequently aborted transaction. To maintain consistency, both must be rolled back.
The abort of $T_1$ causes a cascading rollback of $T_2$ and $T_3$ because both read the uncommitted value of $Y$ written by $T_1$. Hence the correct choice is C: Both $T_2$ and $T_3$.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.