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...


Consider the following (partial) schedule in a centralized database system. Assume the initial values of data items<br>A, B, C, D, and E are 10, 20, 30, 40, and 50, respectively. Assume logging is used for recovery. For simplicity, we<br>assume each write is immediately written to the database (on disk) (and hence, the corresponding log record must<br>be written to the stable storage before the database block on disk is written).<br>Assume the system has crashed right after step 25. Show the complete log just before the crash.<br>T1<br>T2<br>T3<br>T4<br>T5<br>1.<br>R(A)<br>2.<br>R(D)<br>3.<br>R(B)<br>4.<br>R(E)<br>5.<br>B = B - A<br>6.<br>W(B)<br>7.<br>R(C)<br>8.<br>commit<br>9.<br>R(B)<br>10.<br>R(A)<br>11.<br>B = B+E<br>12.<br>R(A)<br>13.<br>W(B)<br>14.<br>D = D+A<br>15.<br>commit<br>16.<br>W(D)<br>17.<br>R(B)<br>18.<br>R(E)<br>19.<br>B = B+A<br>20.<br>W(B)<br>C= C+20<br>E = E-20<br>W(C)<br>21.<br>22.<br>23.<br>24.<br>commit<br>25.<br>W(E)<br>

Extracted text: 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. Show the complete log just before the crash. T1 T2 T3 T4 T5 1. R(A) 2. R(D) 3. R(B) 4. R(E) 5. B = B - A 6. W(B) 7. R(C) 8. commit 9. R(B) 10. R(A) 11. B = B+E 12. R(A) 13. W(B) 14. D = D+A 15. commit 16. W(D) 17. R(B) 18. R(E) 19. B = B+A 20. W(B) C= C+20 E = E-20 W(C) 21. 22. 23. 24. commit 25. W(E)

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here