MINOR: Test topic removal in the homogeneous share group assignor by sunm2n · Pull Request #23874 · apache/kafka · GitHub
Skip to content

MINOR: Test topic removal in the homogeneous share group assignor - #23874

Open
sunm2n wants to merge 1 commit into
apache:trunkfrom
sunm2n:MINOR-share-assignor-unsubscribed-topic
Open

sunm2n wants to merge 1 commit into
apache:trunkfrom
sunm2n:MINOR-share-assignor-unsubscribed-topic

Conversation

@sunm2n

@sunm2n sunm2n commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

No test in SimpleAssignorTest covers the case where a member's current
assignment contains a topic that the share group no longer subscribes
to. In that case,
SimpleHomogeneousAssignmentBuilder#revokeUnassignablePartitions removes
the topic from the member's assignment.

This adds a homogeneous test with two members that each hold one
partition of topic 1 and one partition of topic 2, after the group's
subscription changes to topic 1 only. It verifies that topic 2 is
revoked, that each member keeps its partition of topic 1, and that the
remaining partitions of topic 1 are spread so that each member ends up
with two.

Topic 1 has four partitions so that revoking topic 2 leaves each member
below its target, which also checks that the freed capacity is filled
from the unassigned partitions of topic 1.

@github-actions github-actions Bot added tests Test fixes (including flaky tests) group-coordinator triage PRs from the community small Small PRs labels Oct 20, 2026
@sunm2n

sunm2n commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved group-coordinator KIP-932 Queues for Kafka small Small PRs tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants