bbejeck commented on code in PR #19691: URL: https://github.com/apache/kafka/pull/19691#discussion_r2085379528
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java: ########## @@ -1983,8 +1984,16 @@ private CoordinatorResult<StreamsGroupHeartbeatResult, CoordinatorRecord> stream StreamsGroupHeartbeatResponseData response = new StreamsGroupHeartbeatResponseData() .setMemberId(updatedMember.memberId()) .setMemberEpoch(updatedMember.memberEpoch()) - .setHeartbeatIntervalMs(streamsGroupHeartbeatIntervalMs(groupId)) - .setPartitionsByUserEndpoint(maybeBuildEndpointToPartitions(group)); + .setHeartbeatIntervalMs(streamsGroupHeartbeatIntervalMs(groupId)); + + if (group.endpointInformationEpoch() > memberEndpointEpochInRequest) { Review Comment: This is the fix, the group endpoint epoch is greater than the member's endpoint epoch indicating there's been a change and an update endpoint metadata is required. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org