LOG
Exercise 7. Answer the following questions considering the log records in Figure 1. In each case, justify your answer.
10
Update: T1 writes P
1. Assuming that locking is applied for pages, does strict 2PL allow the schedule in these log records? (10 marks)
20
Update: T2 writes P
30
T commit
2. Which transaction is a loser transaction? (5 marks)
40
3. Can ARIES recover the database from this crash while preserving the ACID properties? If the answer is no, which ACID property cannot be guaranteed? (10 marks)
T end
50
Update: T writes P
60
Update: T writes P1
CRASH, RESTART
Figure 1: The log records in Ex. 7