SLING-7090 - RRD4J metrics reporter does not close file on deactivate
authorRobert Munteanu <rombert@apache.org>
Tue, 29 Aug 2017 12:47:36 +0000 (12:47 +0000)
committerRobert Munteanu <rombert@apache.org>
Tue, 29 Aug 2017 12:47:36 +0000 (12:47 +0000)
Submitted-By: Marcel Reutegger
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1806584 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/sling/commons/metrics/rrd4j/impl/CodahaleMetricsReporter.java

index fd874b0..1c24c8a 100644 (file)
@@ -164,7 +164,7 @@ public class CodahaleMetricsReporter implements InventoryPrinter, ZipAttachmentP
     void deactivate() {
         LOG.info("Stopping RRD4J Metrics reporter");
         if (reporter != null) {
-            reporter.stop();
+            reporter.close();
             reporter = null;
         }
         configuration = null;