smjn commented on code in PR #20006: URL: https://github.com/apache/kafka/pull/20006#discussion_r2159324422
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java: ########## @@ -2575,6 +2576,10 @@ private CoordinatorResult<Map.Entry<ShareGroupHeartbeatResponseData, Optional<In records ) || initializedAssignmentPending(group); + if (bumpGroupEpoch) { + metrics.record(SHARE_GROUP_REBALANCES_SENSOR_NAME); Review Comment: Sure, can be moved there as well. The code path would be the same. -- 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