[ https://issues.apache.org/jira/browse/KAFKA-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16180754#comment-16180754 ]
Rajini Sivaram commented on KAFKA-5968: --------------------------------------- [~tedyu] Thank you for the patch. To fix this properly, request metrics need to be associated with servers rather than the current JVM-wide values so that they can be deleted when the server is shutdown similar to other metrics. > Remove all broker metrics during shutdown > ----------------------------------------- > > Key: KAFKA-5968 > URL: https://issues.apache.org/jira/browse/KAFKA-5968 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: Rajini Sivaram > Fix For: 1.1.0 > > Attachments: 5968.v1.txt > > > RequestMetrics on the broker is currently a static variable, created when the > broker starts up, but the metrics are never removed. This makes it hard to > test broker metrics since there could be metrics left over from previous > tests. We should ensure that all metrics are cleared even for brokers. -- This message was sent by Atlassian JIRA (v6.4.14#64029)