Recovery & Logging

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.