fix IndexArrayOutOfBounds in parallel request aggregator
The range fromEpochMilli to toEpochMilli contains (toEpochMilli - fromEpochMilli +1) milli seconds
This commit is contained in:
@@ -36,7 +36,7 @@ public class ParallelRequestsAggregator implements CustomAggregator {
|
||||
this.toEpochMilli = toEpochMilli;
|
||||
|
||||
final int milliseconds = (int) (toEpochMilli - fromEpochMilli);
|
||||
increments = new short[milliseconds];
|
||||
increments = new short[milliseconds+1];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user