Expand description
Pure reassembly state machine for a follower that fetches a KIP-630
snapshot over FetchSnapshot (api key 59).
This module is IO-free. The async engine (controller.rs) owns the
transport and applies the SnapshotFetchStep that this module returns.
Chunks must arrive in order, that is, position must equal the number of
bytes received so far. Any mismatch or a changed snapshot id aborts the
transfer, so the engine restarts cleanly against the current leader.
Structs§
- Metadata
Snapshot Fetch Max - Validated deployment limit for one metadata snapshot fetch.
- Snapshot
Fetch State - In-flight reassembly of one snapshot from one leader.
Enums§
- Snapshot
Fetch Step - What the engine should do after it feeds a chunk in.
Constants§
- METADATA_
SNAPSHOT_ FETCH_ HARD_ MAX - Hard ceiling on the total bytes a follower will reassemble for one snapshot.
Type Aliases§
- Snapshot
Id - Snapshot identity: (
end_offsetexclusive, epoch), as KIP-630SnapshotId.