
ARIES: Logging and
Recovery
Slides derived from Joe Hellerstein;
Updated by A. Fekete
If you are going to be in the
logging business, one of the
things that you have to do is to
learn about heavy equipment.
-
Robert VanNatta,
Logging History of
Columbia County
Review: The ACID properties
• A tomicity: All actions in the Xact happen, or none happen.
• C onsistency: If each Xact is consistent, and the DB starts
consistent, it ends up consistent.
• I solation: Execution of one Xact is isolated from that of other
Xacts.
• D urability: If a Xact commits, its effects persist.
• The Recovery Manager guarantees Atomicity & Durability.
Motivation
• Atomicity:
– Transactions may abort (“Rollback”).
• Durability:
– What if DBMS stops running? (Causes?)
crash!
Desired Behavior after
system restarts:
– T1, T2 & T3 should be
durable.
– T4 & T5 should be
aborted (effects not seen).
T1
T2
T3
T4
T5
Intended Functionality
• At any time, each data item contains the value
produced by the most recent update done by a
transaction that committed
评论