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

Projects
None yet
4 participants
@pgrebien
Copy link

commented May 17, 2013

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

This comment has been minimized.

Copy link
Contributor

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

Grow array buffer in ScriptDocValues if needed
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 in 17681d7 May 17, 2013

s1monw added a commit that referenced this issue May 17, 2013

Grow array buffer in ScriptDocValues if needed
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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Member

commented Nov 28, 2013

@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

Grow array buffer in ScriptDocValues if needed
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
You can’t perform that action at this time.