Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following (partial) schedule in a centralized database system Assume the initial values of data items A, B, C, D, and E are 10,
Consider the following (partial) schedule in a centralized database system Assume the initial values of data items A, B, C, D, and E are 10, 20, 30, 40, and 50, respectively. Assume logging is used for recovery For simplicity, we assume each write is immediately written to the database (on disk) (and hence, the corresponding log record must be written to the stable storage before the database block on disk is written) Assume the system has crashed right after step 25 T2 R(A R(B) T1 T3 R D) R(E R(C) commit R(B) 10 RA 12 13.W (B) 14 D+A commit W (D) 16 17 18 19 20 R(E C=C+20 W(C) 23 24 commit W(E) (a) Show the complete log just before the crash. b) Which portion of the log is in stable storage when the system crashes? Why? Consider the following (partial) schedule in a centralized database system Assume the initial values of data items A, B, C, D, and E are 10, 20, 30, 40, and 50, respectively. Assume logging is used for recovery For simplicity, we assume each write is immediately written to the database (on disk) (and hence, the corresponding log record must be written to the stable storage before the database block on disk is written) Assume the system has crashed right after step 25 T2 R(A R(B) T1 T3 R D) R(E R(C) commit R(B) 10 RA 12 13.W (B) 14 D+A commit W (D) 16 17 18 19 20 R(E C=C+20 W(C) 23 24 commit W(E) (a) Show the complete log just before the crash. b) Which portion of the log is in stable storage when the system crashes? Why
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started