codahale/metrics — Issue #141: ArrayIndexOutOfBoundsException thrown from Snapshot
Author: ntolia
Created: 2012-01-16 22:04:47+00:00
State: open

I found this exception in my logs today. I am running Metrics 2.0.0-BETA19. I would guess the Collection the Snapshot is generated from is not properly locked and has changed size.

```
E 01-16 13:59:07.377 c.y.m.r.GraphiteReporter:234 :::] Error printing regular metrics:
java.lang.ArrayIndexOutOfBoundsException: 1028
at com.yammer.metrics.stats.Snapshot.(Snapshot.java:33)
at com.yammer.metrics.stats.ExponentiallyDecayingSample.getSnapshot(ExponentiallyDecayingSample.java:107)
at com.yammer.metrics.core.Histogram.getSnapshot(Histogram.java:183)
at com.yammer.metrics.core.Timer.getSnapshot(Timer.java:173)
at com.yammer.metrics.reporting.GraphiteReporter.sendSampling(GraphiteReporter.java:330)
at com.yammer.metrics.reporting.GraphiteReporter.processTimer(GraphiteReporter.java:319)
at com.yammer.metrics.reporting.GraphiteReporter.processTimer(GraphiteReporter.java:26)
at com.yammer.metrics.core.Timer.processWith(Timer.java:204)
at com.yammer.metrics.reporting.GraphiteReporter.printRegularMetrics(GraphiteReporter.java:232)
at com.yammer.metrics.reporting.GraphiteReporter.run(GraphiteReporter.java:198)
```