GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 51

GATE CSE 2016 Set 2 Q51

Database Management Systems · Recovery & Logging · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q51 2 marks · MCQ
Report issue

Recovery & Logging

Question 51, GATE 2016: Schedule S=r2(X);r1(X);r2(Y);w1(X);r1(Y);w2(X);a1;a2, where r,w,a mean read,write,abort. A nonrecoverable; B recoverable but cascading abort; C no cascading abort; D strict.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (10 steps)

Every read occurs before the other transaction has written the read item, so neither transaction reads uncommitted data from the other. There is therefore no read-dependency requiring a cascading abort, C. The two explicit aborts do not themselves establish a cascade. The schedule is recoverable (neither commits prematurely), but not strict because w2(X) overwrites uncommitted w1(X).

Dirty reads, dirty writes and recoverability are different conditions. Here r2(X),r1(X) occur before w1(X), and neither transaction writes Y, so all reads see previously committed values. But w2(X) occurs before T1 aborts, a dirty write, ruling out strictness. Two transactions aborting in the same schedule need not have a causal read-dependency cascade.

Original paper, page 41 · Answer key