Visitar URL original
KAFKA-14019: Skip LeaveGroup when removing all members from an empty consumer group by ojasvajain · Pull Request #23726 · apache/kafka · GitHub
Skip to content

KAFKA-14019: Skip LeaveGroup when removing all members from an empty consumer group - #23726

Open
ojasvajain wants to merge 2 commits into
apache:trunkfrom
ojasvajain:KAFKA-14019-remove-all-members-empty-group
Open

ojasvajain wants to merge 2 commits into
apache:trunkfrom
ojasvajain:KAFKA-14019-remove-all-members-empty-group

Conversation

@ojasvajain

Copy link
Copy Markdown

Admin.removeMembersFromConsumerGroup in remove-all mode builds a LeaveGroupRequest
from the group's current members. For a group with no members, that list is empty and
LeaveGroupRequest.Builder throws IllegalArgumentException: leaving members should not be empty.

After this fix, if there are no members to remove, the client completes the result with no errors
and sends nothing (no FindCoordinator/LeaveGroup). Explicit member lists are unaffected.

@github-actions github-actions Bot added triage PRs from the community clients small Small PRs labels Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant