You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Kirk True (Jira)" <ji...@apache.org> on 2025/07/23 23:11:00 UTC

[jira] [Created] (KAFKA-19542) Consumer.close() does not remove all added sensors from Metrics

Kirk True created KAFKA-19542:
---------------------------------

             Summary: Consumer.close() does not remove all added sensors from Metrics
                 Key: KAFKA-19542
                 URL: https://issues.apache.org/jira/browse/KAFKA-19542
             Project: Kafka
          Issue Type: Bug
          Components: clients, consumer, metrics
    Affects Versions: 4.1.0
            Reporter: Kirk True
            Assignee: Kirk True


When a Consumer is created, it adds sensors to the Metrics object. Some of the classes that manage metrics implement AutoCloseable and diligently remove any Sensors it added from the Metrics object. However, not all of the sensors are removed. It feels like we should be consistent.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)