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

   DescribeGroups returns the assignment of the last generation for the
   members of a classic group in `PreparingRebalance` or
   `CompletingRebalance`. Eager members revoke all their partitions before
   they rejoin, so `kafka-consumer-groups --describe --members` and
   `Admin#describeConsumerGroups` show partitions that the members may no
   longer own.
   
   `ClassicGroupMember#describeNoMetadata`, which describes the members of
   a group in any state but `Stable`, has set the member's assignment
   since the new group coordinator implemented DescribeGroups
   (KAFKA-14504). The old group coordinator sent an empty assignment and
   empty metadata in these states.
   
   This patch sets an empty assignment in `describeNoMetadata` and sets
   the assignment in `describe`, which describes the members of a `Stable`
   group. The members of a rebalancing group then have no partitions, as
   with the old group coordinator. Keeping the assignment in these states
   was rejected because it is stale and mostly revoked by eager members.
   The patch also extends `testDescribeGroupRebalancing` to
   `CompletingRebalance`.
   
   


-- 
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