-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range aggregation with no ranges throw a NullPointerException #22881
Comments
Hello @clintongormley @jpountz, I am looking for my first elasticsearch contribution! However, I cannot reproduce this bug on my fresh elasticsearch build.
and this is what I get for the issue's request:
My
I understand that my build is 1 version later, should I build the 5.1.1 version and check the issue? |
Did you test on master or the 5.x branch? If it does not reproduce on 5.x, then then 5.1 branch is indeed what I would look at next. |
Yes I was testing on master. I just checked 5.x, 5.1, 5.2 and it does reproduce on 5.1 only. |
Good to know that issue is already fixed in 5.2! Thank you for investigating @giorgosp, we appreciate! I will close this issue now. |
@giorgosp I don't think it's resolved in 5.x nor master. The only difference with 5.1 is that you need to have at least one document with the range field to fail the query. The following recreation for instance fails in 5.1, 5.2, 5.x and master:
|
Ok, I am checking it |
Ok, it fails if the range aggregation query is invalid and the "field" value is an existing field inside the document (changing "field": "number" to "field": "number1123" doesn't reproduce the issue). I will keep working on it in my spare time but since I am also trying to familiarize myself with the codebase, if someone else wants to fix it faster than me then it is ok. |
Elasticsearch version: 5.1.1
Plugins installed: [analysis-icu]
JVM version: Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_111-internal/25.111-b14
OS version: Linux/4.8.0-34-generic/amd64
Description of the problem including expected versus actual behavior:
A NullPointerException is displayed to the user when the Range aggregation is malformed:
Steps to reproduce:
Provide logs (if relevant):
Trace:
The text was updated successfully, but these errors were encountered: