Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Append-only log, replay, compaction » ?

Aussi appelé : append-only log · log replay · compaction (log)

Definition 31.5 University Computer Science — Year 2 · Chapitre 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.
Lire dans le chapitre →