← RGPV CS-502 DBMS November 2023 solved question paper
RGPV CS-502 (GS) | November 2023 | Q6(b) | 7 marks
Question (restated): Construct a recoverable schedule involving two transactions.
Answer
A schedule is recoverable if a transaction that reads a value written by another transaction commits only after the writer commits. This condition ensures that a committed transaction never depends on a transaction that subsequently aborts. Let T1 write X and T2 read that version of X.
| Step | T1 | T2 |
|---|---|---|
| 1 | W(X) | |
| 2 | R(X) | |
| 3 | Commit | |
| 4 | Commit |
T2 reads from T1, so the commit order must be C1 before C2. The schedule satisfies this condition and is recoverable. If T1 aborts before committing, T2 must also abort because it has consumed an invalid value. Thus recoverability does not eliminate cascading rollback.
A nonrecoverable schedule is W1(X), R2(X), C2, A1. T2 commits before the writer T1 has committed. When T1 aborts, the database cannot safely undo T2 without violating its committed status.
A cascadeless schedule is stronger: T2 may read X only after T1 commits, for example W1(X), C1, R2(X), C2. A strict schedule additionally prevents other transactions from writing X while T1’s write remains uncommitted. Every strict schedule is cascadeless and every cascadeless schedule is recoverable, but the converse implications do not hold.
Recoverability concerns commit dependencies, whereas serializability concerns equivalence to serial execution. A schedule may satisfy one property without satisfying the other. A robust DBMS seeks both correct isolation and safe recovery.
Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts; Elmasri and Navathe, Fundamentals of Database Systems.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion