Skip to content
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

ArrayIndexOutOfBoundsException in org.elasticsearch.index.fielddata.ScriptDocValues.Strings #3051

Closed
pgrebien opened this issue May 17, 2013 · 3 comments

Comments

@pgrebien
Copy link

getValues() causes an ArrayIndexOutOfBoundsException in case the list is larger than 10 elements because the SlicedObjectList.grow() method is never called. ES-version 0.90.0

@ghost ghost assigned s1monw May 17, 2013
@s1monw
Copy link
Contributor

s1monw commented May 17, 2013

thanks for reporting... I will fix this in a bit.

s1monw added a commit to s1monw/elasticsearch that referenced this issue May 17, 2013
The buffer in ScriptDocValues for Strings was never called causeing
NPE in scripts if a document has > 10 distinct values in a field.

Closes elastic#3051
@s1monw s1monw closed this as completed in 17681d7 May 17, 2013
s1monw added a commit that referenced this issue May 17, 2013
The buffer in ScriptDocValues for Strings was never called causeing
NPE in scripts if a document has > 10 distinct values in a field.

Closes #3051
@rosejn
Copy link

rosejn commented Nov 27, 2013

We are still getting this error when trying to use a function_score script that accesses array values where the array has more than 10 values. This is with 0.90.5, so it seems the bug was not fixed?

@spinscale
Copy link
Contributor

@rosejn dont hesitate to create a new bug report, it is easy to get lost in the old closed ones. Also, Simon added a test, which tries to reproduce the issue in the commit above. Can you find out, what is different with your setup compared to the test, so we can check on it? Or provide us a reproducible test-case?

Thanks!

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
The buffer in ScriptDocValues for Strings was never called causeing
NPE in scripts if a document has > 10 distinct values in a field.

Closes elastic#3051
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants