GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 29

Potentially unrecoverable dirty reads

Database Management Systems · Recovery & Logging · Full GATE CSE 2003 paper

GATE 2003, Q29 1 mark · MCQ
Report issue

Recovery & Logging

Question 29, GATE 2003: Which operation may lead to an irrecoverable database error? A. Writing an item after an uncommitted transaction reads it; B. Reading an item after an uncommitted transaction reads it; C. Reading an item written by a committed transaction; D. Reading an item written by an uncommitted transaction.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Use the concrete schedule W₁(X), R₂(X), C₂, A₁. Transaction 2 has already committed a result based on transaction 1’s value when transaction 1 aborts. Recovery would need to undo a committed dependency, which is why the schedule is nonrecoverable. The word “may” matters: a dirty read need not always lead to such a commit order.

2. If T 2 reads data written by uncommitted T 1, then T 2 commits before T 1 aborts, the schedule is nonrecoverable: a committed transaction depended on an aborted value. Thus D may lead to the stated error. A dirty read alone does not always force irrecoverability; delaying dependent commits can permit cascading rollback.

Original paper, page 4