Expand description
Checkpoint state types and I/O for the compaction engine.
The checkpoint is the materialized state produced by reducing all events.
It lives at checkpoint/state.json in the hub cache and tracks display ID
allocation, lock state, issue state, and compaction metadata.
Structs§
- Checkpoint
State - Materialized state produced by compaction.
- Compact
Issue - Compact issue representation for reduction (tracks mutable fields only).
- Compaction
Lease - Advisory compaction lease to prevent concurrent compaction.
- Lock
Entry - A lock entry in the checkpoint state.
- Skew
Warning - Warning about clock skew detected during compaction.
- Unsigned
Event Warning - Warning about an unsigned event encountered during compaction.
Functions§
- read_
checkpoint - Read checkpoint state from disk. Returns default if missing.
- read_
watermark - Read the compaction watermark (last processed ordering key).
- write_
checkpoint - Write checkpoint state to disk (pretty-printed JSON).
- write_
watermark - Write the compaction watermark.