Expand description
On-disk RLMM snapshot: a versioned envelope wrapping a
RlmmCacheDump plus the per-metadata-partition committed
offsets.
The offsets let a restarting broker resume the metadata consumer from
committed + 1 instead of replaying __remote_log_metadata from
offset 0.
The per-segment and per-partition-delete encoding reuses the
MetadataEvent codec. The envelope adds a format version, the
committed-offsets vector, and length-prefixed entries. Writes are atomic,
through a temp file and a rename, so a crash mid-write never yields a torn
snapshot. A corrupt or truncated file decodes to an error and never to a
panic, and the caller then falls back to a full replay.
Structs§
- Snapshot
- A decoded snapshot: the per-metadata-partition committed offsets and
the cache dump to seed an
InmemoryRemoteLogMetadataManager.
Constants§
- SNAPSHOT_
FILE_ NAME - Default snapshot file name under the snapshot directory.
- SNAPSHOT_
FORMAT_ VERSION - Format version at the head of every snapshot file.