Learning objectives
What you will be able to explain
- What is the correct order of ARIES restart phases after a crash?
- Which structures/outcomes are produced from the Analysis phase?
- ARIES Analysis Pass: complete the Transaction Table and Dirty Page Table
- From the same scenario, which transactions are Winners and Losers at crash time?
- What is the Redo start LSN for this restart?
- ARIES Redo Pass: mark each UPDATE as Redo or Ignore
Section 01
What is the correct order of ARIES restart phases after a crash? to ARIES Analysis Pass: complete the Transaction Table and Dirty Page Table
01
What is the correct order of ARIES restart phases after a crash?
02
Which structures/outcomes are produced from the Analysis phase?
03
ARIES Analysis Pass: complete the Transaction Table and Dirty Page Table
Guided checkpoint
Use the following log and checkpoint snapshot.
| LSN | TID | prevLSN | ACTION |
|---|---|---|---|
| 10 | T1 | BEGIN | |
| 20 | T2 | BEGIN | |
| 30 | T1 | 10 | UPDATE P5 |
| 40 | T2 | 20 | UPDATE P7 |
| 50 | T1 | 30 | UPDATE P7 |
| 60 | BEGIN_CHECKPOINT | ||
| 70 | T2 | 40 | COMMIT |
| 80 | T2 | 70 | END |
| 90 | T3 | BEGIN | |
| 100 | T3 | 90 | UPDATE P9 |
| 110 | END_CHECKPOINT | ||
| 120 | T1 | 50 | UPDATE P8 |
| 130 | T3 | 100 | UPDATE P7 |
Restart begins at the checkpoint (LSN 60). The checkpoint state loaded at restart is:
Transaction table (initial)
| TID | lastLSN |
|---|---|
| T1 | 50 |
| T2 | 40 |
Dirty page table (initial)
| PID | recLSN |
|---|---|
| P5 | 30 |
| P7 | 40 |
Fill the final tables after Analysis. Choose "No Entry" where applicable.
Section 02
From the same scenario, which transactions are Winners and Losers at crash time? to ARIES Redo Pass: mark each UPDATE as Redo or Ignore
01
From the same scenario, which transactions are Winners and Losers at crash time?
02
What is the Redo start LSN for this restart?
Guided checkpoint
Use the post-analysis DPT from q3.
03
ARIES Redo Pass: mark each UPDATE as Redo or Ignore
Guided checkpoint
Dirty page table (after analysis)
| PID | recLSN |
|---|---|
| P5 | 30 |
| P7 | 40 |
| P8 | 120 |
| P9 | 100 |
Apply ARIES redo checks (repeat history). Assume pageLSN is always less than LSN for the shown records.
Section 03
About ARIES Redo rules: to ARIES Undo Pass: mark each UPDATE as Undo or Ignore
01
About ARIES Redo rules:
02
Undo initialization: which LSN is processed first?
Guided checkpoint
| Loser TID | lastLSN |
|---|---|
| T1 | 120 |
| T3 | 130 |
03
ARIES Undo Pass: mark each UPDATE as Undo or Ignore
Guided checkpoint
| Winners | Losers |
|---|---|
| {T2} | {T1, T3} |
Undo only processes loser transactions backward via prevLSN chains.
Section 04
How many CLRs are generated during Undo in this scenario? to Why can Redo reapply updates from loser transactions even though they will be undone later?
01
How many CLRs are generated during Undo in this scenario?
Guided checkpoint
Assume each undone UPDATE generates exactly one CLR.
02
When Undo reaches a loser's BEGIN record, what is the next ARIES action?
03
Why can Redo reapply updates from loser transactions even though they will be undone later?
Knowledge check
Turn understanding into recall.
The quiz now follows the same concepts in scored form. You can return to this lesson from the quiz whenever a gap appears.