Skip to content

KAFKA-9315: The Kafka Metrics class should clear the mbeans map when closing - #7851

Closed
cmccabe wants to merge 1 commit into
apache:trunkfrom
cmccabe:KAFKA-9315
Closed

KAFKA-9315: The Kafka Metrics class should clear the mbeans map when closing#7851
cmccabe wants to merge 1 commit into
apache:trunkfrom
cmccabe:KAFKA-9315

Conversation

@cmccabe

@cmccabe cmccabe commented Dec 18, 2019

Copy link
Copy Markdown
Contributor

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.

…closing

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.
@ijuma

ijuma commented Jan 28, 2020

Copy link
Copy Markdown
Member

@cmccabe is this ready for review? cc @hachikuji who reviewed the other related PR.

@cmccabe

cmccabe commented Jan 28, 2020

Copy link
Copy Markdown
Contributor Author

I have a better change that I'm planning to post soon. I'll close this one. Sorry for the confusion.

@cmccabe cmccabe closed this Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants