CS FundamentalsVery hardGATE CS (PYQ pattern)
Schedule (no commits yet): W1(A), R2(A), W2(B), R3(B), R4(C), W3(C), R5(D), W4(D). T1 now aborts. Which set of transactions must also be rolled back to avoid a non-recoverable state (cascading abort through reads-from dependencies, counting each dependent transaction that read data written, directly or transitively, by an aborted one)?
- A. T1, T2, T3
- B. T1, T2
- C. T1, T2, T3, T4
- D. T1, T2, T3, T5
Correct answer: A. T1, T2, T3
R2(A) reads T1's write, so T2 aborts; R3(B) reads T2's write, so T3 aborts. R4(C) comes BEFORE W3(C), so T4 read the initial C and is unaffected, and T5 reads D before W4(D). Hence T1, T2, T3 (the aborted T1 included).
More DBMS and SQL questions
- Which of the following statements about the SQL standard isolation levels (locking-based implementation) are correct? I. READ COMMITTED…
- A log (immediate modification, redo-undo recovery, checkpoint lists active transactions) reads: <T1 start>, <T1,A,1,2>, <T2 start>…
- A B+ tree has 4096-byte nodes, 10-byte keys and 6-byte tree pointers. An internal node with n pointers carries n - 1 keys. A leaf holds…
- A query scans a table of 11 pages sequentially, 5 times in a row, with a buffer pool of 10 pages (initially empty). How many buffer hits…
- An ER model has entity sets E1, E2, E3 and a weak entity W (identified through E3 by an identifying 1:N relationship). Relationships…
- Entity sets A (6 entities) and B (9 entities) are linked by relationship R. Every A entity must take part in R (total participation) and…