David Jacot created KAFKA-21648:
-----------------------------------
Summary: DescribeGroups returns the last assignment of the members
of 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
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)