Skip to content

KAFKA-20601: Allow static member rejoin when consumer group is full (4.2) - #23120

Open
chickenchickenlove wants to merge 1 commit into
apache:4.2from
chickenchickenlove:KAFKA-20601-4.2
Open

KAFKA-20601: Allow static member rejoin when consumer group is full (4.2)#23120
chickenchickenlove wants to merge 1 commit into
apache:4.2from
chickenchickenlove:KAFKA-20601-4.2

Conversation

@chickenchickenlove

Copy link
Copy Markdown
Contributor

Backport of #22356 to the 4.2 branch.

The change cherry-picked without textual conflicts. The regression tests required a small adaptation because trunk stores partition epochs in assigned partitions, while the 4.2 branch stores assignments as Map<Uuid, Set<Integer>>.

Testing

  • ./gradlew :group-coordinator:test --tests org.apache.kafka.coordinator.group.GroupMetadataManagerTest
  • ./gradlew :group-coordinator:checkstyleMain :group-coordinator:checkstyleTest spotlessCheck

…pache#22356)

Previously, a static member rejoining a full modern consumer group could
be rejected by the max group size check before the coordinator resolved
that it was replacing an existing static member.

Now, the max size check allows existing static members by `instanceId`
to proceed to the static member validation/replacement path. New members
are still rejected when the consumer group is at capacity, and
unreleased static instance IDs still fail with the appropriate
exception.

Reviewers: nileshkumar3 <nileshkumar3@gmail.com>, David Jacot
 <david.jacot@gmail.com>
(cherry picked from commit e691934)
@chickenchickenlove

Copy link
Copy Markdown
Contributor Author

@dajac
Sorry for the ping out of the blue.
I apologize for the delay. I was unable to work on this for a while.
I've now opened the PR for the backport you requested. When you have a chance, could you please take a look?
Thank you for your patience 🙇‍♂️

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant