You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8.14] Fix IOOBE in TTest aggregation when using filters (#109051)
* Fix IOOBE in TTest aggregation when using filters (#109034)
There is a corner case in the TTEst aggregation where we are throwing an IOOBE becuase we are not checking properly
the bounds of the arrays. It happens when using filters on the aggregation and the aggregation is a sub-aggregation.
Then one of the TTestStats can be empty which my mean that the array might have not been grown. When reading it,
we don't check the current range.
This commit makes sure we only read the state if it exist in the array.
* Fix IOOBE in TTest aggregation when using filters
* make empty final
Copy file name to clipboardExpand all lines: x-pack/plugin/analytics/src/main/java/org/elasticsearch/xpack/analytics/ttest/UnpairedTTestAggregator.java
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,14 @@ public class UnpairedTTestAggregator extends TTestAggregator<UnpairedTTestState>
0 commit comments