lucliu1108 opened a new pull request, #24141:
URL: https://github.com/apache/kafka/pull/24141

   When a classic group member's JoinGroup is rejected with 
·GROUP_MAX_SIZE_REACHED·, the coordinator removes the member from the group, 
but doesn't check whether the join phase can now complete immediately. If the 
rejected member was the last one the group was waiting for, the remaining 
members are left waiting until the rebalance timeout expires. This PR adds the 
missing check after the rejection.
   
   Tests:
   1. 
`testJoinPhaseCompletesWhenLastRejoiningMembersAreRejectedWithGroupMaxSize`: A 
loaded group with more members than `group.max.size` rebalances, and the last 
members to rejoin are rejected. The test verifies that the join phase doesn't 
complete while a member that has not yet rejoined is still in the group, and 
that it completes as soon as the last over-capacity member is rejected.
   2. `testJoinPhaseCompletesWhenLastPendingMemberIsRejectedWithGroupMaxSize`: 
A new member that is still pending (it received `MEMBER_ID_REQUIRED`) rejoins 
after the group has reached `group.max.size` during a rebalance and is 
rejected. The test verifies that removing it from the pending members lets the 
join phase complete right away.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to