Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Append-only log, replay, compaction?

También llamado: append-only log · log replay · compaction (log)

Definition 31.5 University Computer Science — Year 2 · Capítulo 31 — Project: A Key-Value Server

An append-only log is a file to which records are only ever added at the end. To replay a log of changes is to apply its records in order to an empty state. To compact it is to replace it by a shorter log whose replay gives the same state.

The record of SET a 1, byte by byte: four bytes of length, four of CRC, then the command as it is printed. A record is 8 bytes longer than its command.
The record of SET a 1, byte by byte: four bytes of length, four of CRC, then the command as it is printed. A record is 8 bytes longer than its command.
A crash in the middle of an append. The restart replays the three complete records, cuts the file after them, and the next change is appended there.
A crash in the middle of an append. The restart replays the three complete records, cuts the file after them, and the next change is appended there.
Leer en el capítulo →