Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes array out of bounds for value count agg #26038
#17379 fixed many metric aggs so that if the parent aggregation does not collect any documents an empty bucket value is returned instead of an ArrayOutOfBoundsException being thrown. Unfortunately the value count aggregation was mised from this fix.
This change applies this fix from #17379 for the value count aggregation.
Aug 3, 2017
The 2.4 branch is not under active development and so new releases in 2.4.x series would only be done if there is a very serious bug. I don't think this bug warrants a release of 2.4.x on its own and so would only be released in 2.4 if another bug caused a release. In fact, thinking again about the policy for back-porting I actually think I should not have back-ported this to 2.4 since it is not a serious show-stopping bug. If the user needs a fix to this issue I would encourage them to upgrade to 5.5.2 or 5.6 when they are released.