[ https://issues.apache.org/jira/browse/SLING-7222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226884#comment-16226884 ]
Chetan Mehrotra commented on SLING-7222: ---------------------------------------- Applied patch with [commit|https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-commons-metrics-rrd4j.git;a=commitdiff;h=a07550a196736d25f0593b5e5b2432db8bd39c1b] > Too frequent samples > -------------------- > > Key: SLING-7222 > URL: https://issues.apache.org/jira/browse/SLING-7222 > Project: Sling > Issue Type: Bug > Components: Commons > Affects Versions: Commons Metrics RRD4J 1.0.0 > Reporter: Marcel Reutegger > Priority: Minor > Attachments: SLING-7222.patch > > > The metrics reporter sometimes logs error messages telling samples are > reported too frequently (more than once a second): > {noformat} > 29.10.2017 19:01:25.384 *ERROR* [metrics-RRD4JReporter-1-thread-1] > com.codahale.metrics.ScheduledReporter RuntimeException thrown from > RRD4JReporter#report. Exception was suppressed. > java.lang.IllegalArgumentException: Bad sample time: 1509300085. Last update > time was 1509300085, at least one second step is required > at org.rrd4j.core.RrdDb.store(RrdDb.java:517) > at org.rrd4j.core.Sample.update(Sample.java:194) > at > org.apache.sling.commons.metrics.rrd4j.impl.RRD4JReporter.report(RRD4JReporter.java:239) > at > com.codahale.metrics.ScheduledReporter.report(ScheduledReporter.java:162) > at > com.codahale.metrics.ScheduledReporter$1.run(ScheduledReporter.java:117) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)