[ 
https://issues.apache.org/jira/browse/KAFKA-21648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Jacot resolved KAFKA-21648.
---------------------------------
    Fix Version/s: 4.5.0
                   4.4.1
                   4.3.3
       Resolution: Fixed

> Do not return stale assignments in DescribeGroups for a rebalancing classic 
> group
> ---------------------------------------------------------------------------------
>
>                 Key: KAFKA-21648
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21648
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: David Jacot
>            Assignee: David Jacot
>            Priority: Major
>             Fix For: 4.5.0, 4.4.1, 4.3.3
>
>
> When a classic group is in PreparingRebalance or CompletingRebalance, 
> DescribeGroups returns the assignment of the last generation for each member. 
> The old group coordinator returned an empty assignment and empty metadata for 
> the members of a group that is not Stable.
> The assignment of the last generation is stale during a rebalance. Eager 
> members revoke all their partitions before they rejoin, and the next 
> generation can move partitions to other members. kafka-consumer-groups.sh 
> --describe --members and Admin#describeConsumerGroups therefore show 
> partitions for members that may no longer own them.
> *Steps to reproduce*
> # Start a classic consumer group G with two consumers using the range 
> assignor, and wait until G is Stable.
> # Start a third consumer, so that G starts a rebalance.
> # While G rebalances, run kafka-consumer-groups.sh --describe --group G 
> --members --verbose.
> *Expected:* while G rebalances, its members show no assigned partitions, as 
> with the old group coordinator.
> *Actual:* the members show the partitions of the last generation.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to