WAL, crash recovery, and the redo/undo boundary

Trace a dirty page through a crash, apply write-ahead logging, and separate commit durability, redo, undo, and checkpoints. Transaction runtime and crash recovery · Databases.

A payment service says “saved,” then the machine loses power before every page reaches disk. Which record lets recovery keep the committed change and remove the incomplete one?

What you will learn

  • Trace a dirty page and its log record through a crash
  • Explain why no-force and steal require distinct redo and undo roles
  • Qualify commit durability and checkpoint claims by their storage and engine boundary

Lesson outline

  1. The log must lead the page
  2. Commit is a storage promise
  3. Restart separates redo from undo

20 minutes · 2 scenes · 0 predict checks · 10 quiz questions

The full lesson is available with Premium.