[ https://issues.apache.org/jira/browse/KAFKA-2419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903731#comment-14903731 ]
ASF GitHub Bot commented on KAFKA-2419: --------------------------------------- GitHub user auradkar opened a pull request: https://github.com/apache/kafka/pull/233 KAFKA-2419; Garbage collect unused sensors As discussed in KAFKA-2419 - I've added a time based sensor retention config to Sensor. Sensors that have not been "recorded" for 'n' seconds are eligible for expiration. In addition to the time based retention, I've also altered several tests to close the Metrics and scheduler objects since they can cause leaks while running tests. This causes TestUtils.verifyNonDaemonThreadStatus to fail. You can merge this pull request into a Git repository by running: $ git pull https://github.com/auradkar/kafka K-2419 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/233.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #233 ---- commit b19603cb28a5ae45ba1e6f4288e8bf57ac36b1e3 Author: Aditya Auradkar <aaura...@aauradka-mn1.linkedin.biz> Date: 2015-09-22T23:25:30Z KAFKA-2419; Garbage collect unused sensors ---- > Allow certain Sensors to be garbage collected after inactivity > -------------------------------------------------------------- > > Key: KAFKA-2419 > URL: https://issues.apache.org/jira/browse/KAFKA-2419 > Project: Kafka > Issue Type: New Feature > Affects Versions: 0.9.0.0 > Reporter: Aditya Auradkar > Assignee: Aditya Auradkar > Priority: Blocker > Labels: quotas > Fix For: 0.9.0.0 > > > Currently, metrics cannot be removed once registered. > Implement a feature to remove certain sensors after a certain period of > inactivity (perhaps configurable). -- This message was sent by Atlassian JIRA (v6.3.4#6332)