Expand description
Classic Kafka ISR decisions: AlterPartition validation on the controller,
ISR maintenance and follower catch-up tracking on the partition leader, and
the high-watermark computation.
Structs§
- Alter
Partition Facts - What the controller knows about one
AlterPartitionpartition row, as Kafka’sReplicationControlManager.validateAlterPartitionDatareads it. - High
Watermark Facts - The partition-wide inputs of Kafka’s
Partition.maybeIncrementLeaderHW. - HwmReplica
- One remote replica as Kafka’s
Partition.maybeIncrementLeaderHWweighs it. - IsrCandidate
Facts - What the leader knows about one candidate at an ISR maintenance scan, read once at the scan’s single timestamp.
- IsrEligibility
Facts - What the leader’s metadata cache and the follower’s last Fetch say about
whether one replica may join the ISR, the inputs of Kafka’s
Partition.isReplicaIsrEligible(KIP-841). - IsrMember
Facts - The inputs of
isr_maintenance_selected, superseded byIsrCandidateFacts. Every time bound isreplica.lag.time.max.ms, measured from the scan’s single timestamp.
Enums§
- Caught
UpCredit - Which fetch time, if any, a follower fetch proves the follower was caught up at.
- IsrAdmission
- The first
AlterPartitionvalidation failure of one partition row, orAdmit. - IsrMember
Role - Where one candidate stands in the partition the leader maintains.
- Proposed
Isr - How a proposed ISR relates to the partition’s assignment and leader.
Functions§
- follower_
caught_ up_ credit - Kafka’s
Replica.updateFetchStateOrThrowchoice oflastCaughtUpTimeMs. - isr_
admission - Apply Kafka’s ordered
AlterPartitionchecks to one partition row. - isr_
candidate_ selected - Decide whether one candidate belongs in the next ISR proposal.
- isr_
maintenance_ selected - krabka’s former ISR scan rule, superseded by
crate::isr::isr_candidate_selected. - isr_
proposal_ changed - Report a proposal only when at least one unique member is added or removed.
- leader_
high_ watermark - Compute the leader’s next high watermark.
- replica_
isr_ eligible - Decide whether one replica may join the ISR, Kafka’s
Partition.isReplicaIsrEligible.