Skip to content

KAFKA-21266: Compute the effective min ISR from the target partition - #23895

Draft
unknowntpo wants to merge 1 commit into
apache:trunkfrom
unknowntpo:kafka-21266-effective-min-isr
Draft

unknowntpo wants to merge 1 commit into
apache:trunkfrom
unknowntpo:kafka-21266-effective-min-isr

Conversation

@unknowntpo

@unknowntpo unknowntpo commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The controller used the replica count of partition 0 to compute the
effective min ISR for every partition of a topic. Partitions can have
different replication factors, so a small partition 0 could lower the
min ISR of other partitions and clear their ELR too early.

This patch uses the replicas of the partition being changed. All callers
already have that partition.

The test helper newAlterPartition always used partition index 0. It
now uses the given partition.

The controller used the replica count of partition 0 to compute the
effective min ISR for every partition of the topic. Partitions of one
topic can have different replication factors, so a small partition 0
could lower the min ISR of other partitions and clear their ELR too early.

Use the replicas of the partition being changed instead. All callers
already have that partition.

The test helper newAlterPartition always used partition index 0. It now
uses the given partition.

Generated-by: Claude Opus 5.5
@github-actions github-actions Bot added kraft small Small PRs triage PRs from the community labels Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kraft small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant