Expand description
KIP-101/320 leader-epoch divergence lookup kernel: Kafka’s
LeaderEpochFileCache.endOffsetFor.
The log crate keeps the checkpoint entries in strictly increasing epoch and
start-offset order. This kernel answers the (found_epoch, end_offset)
pair that an OffsetForLeaderEpoch row carries and that a Fetch row’s
diverging_epoch is built from.
Structs§
- Epoch
Entry - One leader epoch and the offset where it begins.
Functions§
- epoch_
and_ offset_ for_ entries - Resolve a requested leader epoch to
(found_epoch, end_offset), exactly as Kafka’sLeaderEpochFileCache.endOffsetFordoes (seekafka_end_offset_forfor the case table).