Recovery System Flashcards
Three Types of Failure Classification
- Transaction Failure
- System Crash
- Disk Failure
Two types of Transaction Failures
- Logical errors- transaction cannot complete due to internal error condititon
- System errors- system must terminate a transaction due to error condition (deadlock)
What happens in deferred modification?
If a transaction does not modify the database until it has committed.
With deferred modification, log records do not need
to contain old values of updated data items.
Deferred modification has the overhead that transactions need
to make local copies of all updated data items;
What happens in immediate modification?
Database modifications
occur while the transaction is still active
When do we undo a record in log?
Log has <Ti>, but does not contain the record <Ti>.</Ti></Ti>
When do we redo a record in log?
log contains both the record <Ti> and the record <Ti>.</Ti></Ti>
Explain the purpose of checkpoint
Reduce Recovery Time: Checkpoints allow the system to determine which transactions need to be redone or undone after a crash without searching the entire log.
Minimize Overhead:Checkpoints help minimize this overhead by providing a reference point for determining which transactions need to be redone.
Optimize Recovery Process: Checkpoints enable the system to streamline the recovery procedure by identifying the set of transactions active at the time of the crash. This helps in efficiently applying redo and undo operations only to the necessary transactions.
How does the frequency of checkpoints affect System performance when no failure occurs?
When no failure occurs, the frequency of checkpoints directly impacts system performance. More frequent checkpoints can lead to increased overhead due to the interruption of regular transaction processing for checkpoint operations. This interruption can result in decreased throughput and longer response times for user transactions. On the other hand, less frequent checkpoints reduce the overhead associated with checkpointing but may lead to longer recovery times in the event of a failure. Therefore, finding the right balance in checkpoint frequency is crucial