public CoordinatorResult<ConsumerGroupHeartbeatResponseData, CoordinatorRecord> consumerGroupHeartbeat(
        RequestContext context,
        ConsumerGroupHeartbeatRequestData request
    ) {
        return groupMetadataManager.consumerGroupHeartbeat(context, request);
    }
Handles a ConsumerGroupHeartbeat request.

@param context The request context.
@param request The actual ConsumerGroupHeartbeat request.

@return A Result containing the ConsumerGroupHeartbeat response and
        a list of records to update the state machine.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java