dajac opened a new pull request, #24386: URL: https://github.com/apache/kafka/pull/24386
A classic JoinGroup with a known member id to an empty consumer or streams group deletes the group in memory and adds its tombstones to the records, but the request is then rejected with `UNKNOWN_MEMBER_ID` and the records are dropped. Once the next write to the partition is committed, the group disappears from the describe APIs and from `ListGroups`, which read at the last committed offset, while the log still holds it. The group comes back when the partition is loaded again, and the next JoinGroup with an unknown member id converts the group without writing its tombstones. This patch deletes the empty consumer or streams group only when the member id is unknown, because only then is a classic group created in its place. The response error stays `UNKNOWN_MEMBER_ID`. A join with a known member id also skips the topology description cleanup that comes before the conversion of an empty streams group, as it cannot convert the group. The patch adds a test for each group type and a known member id case to the topology cleanup detection test. -- 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]
