Expand description
Storage-transition admission decisions.
Structs§
- Local
Truncation Plan - Segment-prefix and active-segment selection for a tail truncation.
Enums§
- Remote
Cache Action - Mutation of the primary remote-metadata cache and its derived epoch index.
- Remote
Partition Delete Lifecycle - KIP-405
RemotePartitionDeleteState. - Remote
Segment Lifecycle - KIP-405
RemoteLogSegmentState, shared by every remote-segment kernel so the host maps its state onto one type.
Functions§
- future_
log_ swap_ admission - A future log may replace the current log only at the exact same frontier.
- local_
append_ coordinates - Admit one batch at the expected logical frontier or beyond it, and compute its inclusive last offset and exclusive successor without signed overflow.
- local_
truncation_ plan - Keep exactly the sealed-segment prefix whose bases precede the cut and keep the current active segment exactly when its base also precedes the cut.
- remote_
cache_ action - Classify one remote-segment cache update against the cached state,
Nonewhen the cache holds no such segment. - remote_
partition_ delete_ transition - Kafka’s
RemotePartitionDeleteState.isValidTransition: with no prior state onlyDELETE_PARTITION_MARKEDis admitted; otherwise a forward edge or an idempotent self transition. - remote_
segment_ transition - Kafka’s
RemoteLogSegmentState.isValidTransitionfor a known source state: a forward lifecycle edge, or a self transition, which Kafka admits so retries and failover stay idempotent. - truncation_
batch_ retained - One decoded batch belongs to the exact retained prefix iff its inclusive last offset is below the exclusive cut.
- truncation_
frontier - Clamp a dependent frontier to the new log end.
- truncation_
relative_ offset - Convert an absolute cut to a segment-relative offset without signed or
u32overflow. Segment bases and log cuts are nonnegative Kafka offsets.