squah-confluent opened a new pull request, #24177: URL: https://github.com/apache/kafka/pull/24177
Backport of #24108 to 4.1 (cherry-pick of 5c73b87f21aac4ac464cfaee30fb51ff096b11a2). Only the KAFKA-21458 part applies. 4.1 does not have KAFKA-20272, so classic members are told to rejoin as soon as the group epoch is bumped and the target assignment is updated when they rejoin. Unlike #24108, the classic heartbeat does not update the target assignment, and the tests are adapted to match. Unlike consumer heartbeats, classic heartbeats to a consumer group do not refresh the subscription metadata. When all the members of a consumer group use the classic protocol, topic creations and partition increases do not bump the group epoch until a member rejoins. In a classic group, the leader would detect them and rejoin, but classic members of a consumer group have no leader. Make classic heartbeats refresh the subscription metadata when it has expired, like consumer heartbeats do. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
