Colin McCabe created KAFKA-9315:
-----------------------------------

             Summary: The Kafka Metrics class should clear the mbeans map when 
closing
                 Key: KAFKA-9315
                 URL: https://issues.apache.org/jira/browse/KAFKA-9315
             Project: Kafka
          Issue Type: Bug
          Components: metrics
            Reporter: Colin McCabe
            Assignee: Colin McCabe


The JmxReporter should clear the mbeans map when closing.  Otherwise, metrics 
may be incorrectly re-registered if the JmxReporter class is used after it is 
closed.

For example, calling JmxReporter#close followed by JmxReporter#unregister could 
result in some of the mbeans that were removed in the close operation being 
re-registered.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to