David Jacot created KAFKA-21646:
-----------------------------------
Summary: JoinGroup with a known member id removes an empty
consumer or streams group in memory only
Key: KAFKA-21646
URL: https://issues.apache.org/jira/browse/KAFKA-21646
Project: Kafka
Issue Type: Bug
Affects Versions: 4.0.0
Reporter: David Jacot
Assignee: David Jacot
When a classic consumer sends a JoinGroup with a member id to a consumer group
or a streams group that has no members, the group coordinator deletes the group
in memory and adds its tombstones to the records of the request. The request is
then rejected with UNKNOWN_MEMBER_ID because the member id is unknown, and the
records are dropped. The group is gone from memory, but its deletion is never
written to the log.
A classic consumer sends such a request, for example, when it was removed from
the group after its session timed out, it was the last member, and it rejoins
with its previous member id.
Impact:
* Once the next write to the same __consumer_offsets partition is committed,
the group disappears from ConsumerGroupDescribe, StreamsGroupDescribe,
DescribeGroups and ListGroups, which read at the last committed offset, while
the log still holds it.
* The group comes back when the partition is loaded again, for example after a
coordinator failover.
* The next JoinGroup with an unknown member id creates a classic group in its
place without writing the tombstones of the consumer or streams group, so the
log keeps records of a group that no longer exists.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)