[ 
https://issues.apache.org/jira/browse/KAFKA-9315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16999495#comment-16999495
 ] 

ASF GitHub Bot commented on KAFKA-9315:
---------------------------------------

cmccabe commented on pull request #7851: KAFKA-9315: The Kafka Metrics class 
should clear the mbeans map when closing
URL: https://github.com/apache/kafka/pull/7851
 
 
   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 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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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
>            Priority: Major
>
> 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