Gaurav Narula created KAFKA-16426: ------------------------------------- Summary: Initialise KafkaMetricsGroup statically Key: KAFKA-16426 URL: https://issues.apache.org/jira/browse/KAFKA-16426 Project: Kafka Issue Type: Improvement Components: metrics Affects Versions: 3.6.1, 3.7.0 Reporter: Gaurav Narula Fix For: 3.7.1
KAFKA-14524 ([PR-13067|https://github.com/apache/kafka/pull/13067]) migrated {{KafkaMetricsGroup}} from Scala to Java. In doing so, we overlooked initialising {{KafkaMetricsGroup}} instances statically. This results in allocating many more {{KafkaMetricsGroup}} instances than are required. -- This message was sent by Atlassian Jira (v8.20.10#820010)