CS FundamentalsVery hardGATE CS

Which statement about compensation log records (CLRs) in ARIES is correct?

  1. A. CLRs are undone during a later restart if a crash interrupts recovery
  2. B. CLRs record only the transaction id, not the page changed
  3. C. CLRs are redo-only and carry an UndoNextLSN, so a crash during undo never undoes the same update twice
  4. D. CLRs are written during the redo pass to mark pages already brought up to date

Correct answer: C. CLRs are redo-only and carry an UndoNextLSN, so a crash during undo never undoes the same update twice

Each undo action writes a CLR that is redone but never undone; its UndoNextLSN points to the next record still to undo, so repeated crashes during rollback do bounded work. CLRs are written in the undo pass, not the redo pass.

More DBMS and SQL questions

Exams that ask this topic