Based on the following System log at time of system crash, answer the questions that follows: [checkpoint] System Crash What are the recovery actions in each of the following recovery techniques? Deferred Update Immediate update (Undo/Redo)
Based on the following System log at time of system crash, answer the questions that follows: [checkpoint] System Crash What are the recovery actions in each of the following recovery techniques? Deferred Update Immediate update (Undo/Redo)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Based on the following System log at time of system crash, answer the questions that follows:
<start_transaction, T1> <write_item, T1, B, 100, 200> <commit, T1> [checkpoint] <start_transaction, T2> <write_item, T2, C, 1500, 250> <commit, T2> <start_transaction, T3> <write_item, T3, B, 200, 300> <start_transaction, T4> <write_item, T4, C, 1500, 250> <write_item, T3, A, 500, 1000> |
System Crash
What are the recovery actions in each of the following recovery techniques?
- Deferred Update
- Immediate update (Undo/Redo)
Expert Solution
Step 1
start transaction, T
start transaction, 12]
start transaction, 12]start transaction, 12]
write item, Ti, A, 10, 20]
start transaction, Ta
write item, T2, B. 12, 25
write item, Ts, C, 21, 30]
commit. T
checkpoint]
write item, T2, D. 30, 35
commit, T2
write item, T3, A, 20, 30
start_transaction, T
write item, T₁, B, 25, 20
Step 2/2
Undo_item, T4, B, 25]
Abort_transaction, T4]
Undo_item, T3, A, 20]
Undo_item, T3, C, 21]
Abort_transaction, T3]
Final answer
Transactions T3 and T4 are undone,the compensation log records show that Transaction T2 is redone, since it has committed before the crash
Transaction T1 is committed before checkpoint and hence all changes related to T1 are
already written to the disk,thus T1 is neither undone nor redone.
Transactions T3 and T4 are rolled back
The compensation log record(red color text) corresponds to write_item operations for
T3 and T4 these are undone.
-System crash
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education