hudeqi opened a new pull request, #13959: URL: https://github.com/apache/kafka/pull/13959
This pr is used to remove the metrics in ControllerChannelManager when broker shutdown. This pr has passed the corresponding unit test, and it is part of [KAFKA-15129](https://issues.apache.org/jira/browse/KAFKA-15129). Different from other PRs under this topic, this PR solves the leaking problem of the `TotalQueueSize` metric in `ControllerChannelManager`, and refactors the registration and removal of all metrics in this class to prevent the situation of forgetting to remove them easily when adding new metrics in the future. -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org