fix IndexArrayOutOfBounds in parallel request aggregator

The range fromEpochMilli to toEpochMilli contains
(toEpochMilli - fromEpochMilli +1) milli seconds
This commit is contained in:
2019-11-01 09:37:03 +01:00
parent 462601797e
commit 78f9f3fe16

View File

@@ -36,7 +36,7 @@ public class ParallelRequestsAggregator implements CustomAggregator {
this.toEpochMilli = toEpochMilli; this.toEpochMilli = toEpochMilli;
final int milliseconds = (int) (toEpochMilli - fromEpochMilli); final int milliseconds = (int) (toEpochMilli - fromEpochMilli);
increments = new short[milliseconds]; increments = new short[milliseconds+1];
} }
@Override @Override