This repository has been archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
ArrayIndexOutOfBounds with collections of UDTs #400
Comments
Almost forgot to include the stack trace. When I run the example listed above, here is the stack trace printed in system.log on the coordinator node:
|
Additional info-- these steps also reproduce the error when running Cassandra 3.11.1 with Cassandra Lucene Index version 3.11.1.0, and with 3.11.0/3.11.0.0, and with 3.7/3.7.4. So it's been there a long time, at least in the 3.x series. I cannot reproduce the issue with Cassandra 3.0.15 and Cassandra Lucene Index 3.0.15.0. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Cassandra Lucene Index version 3.11.1.0
Cassandra Version: 3.11.3
I have a consistently reproducible test case that throws an ArrayIndexOutOfBoundsException at query time, if each of the following is true (I've tested and taking out any item on this list causes it to work):
sort
clauseNote that the first two items on this list sound like #395, the last item is similar to #394, but this issue exposes the symptoms a bit differently. There may be a similar root cause for all 3 issues.
Here is a simple script to reproduce the problem:
Expected Result
A single row is returned
Actual Result
ServerError: java.lang.ArrayIndexOutOfBoundsException
is reported in cqlshVariants that do not break
Remove the sort
This returns the expected single row.
Select the collection of UDTs
This returns the expected single row.
This also returns the expected single row.
Do not index the collection of UDT's
The issue is not reproducible with the above index definition that just omits the collection of UDT's
The text was updated successfully, but these errors were encountered: