Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es ARIES recovery?

Definition 23.10 University Computer Science — Year 3 · Capítulo 23 — Concurrency Control and Recovery

Analysis reads the log from the last checkpoint and rebuilds the table of transactions active at the crash, the losers, and the table of dirty pages. Redo repeats history: from the smallest recLSN, it reapplies every update and CLR whose page LSN shows it is not on its page, losers’ records included. Undo rolls the losers back, newest record first, writing a CLR for each update it undoes; the CLR’s undo_next points to the next record to undo, so that a CLR met later is never undone twice.

The log of the recovery trace, record by record: u_i an update by T_i, c_i a commit, e_i an end, ck the checkpoint (shaded), clr the compensation records of T_3’s rollback. Analysis reads from the checkpoint, redo from LSN 1, and undo walks back through the losers’ updates 17, 16 and 9.
The log of the recovery trace, record by record: uiu_i an update by TiT_i, cic_i a commit, eie_i an end, ck the checkpoint (shaded), clr the compensation records of T3T_3’s rollback. Analysis reads from the checkpoint, redo from LSN 1, and undo walks back through the losers’ updates 17, 16 and 9.
Leer en el capítulo →