cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Scalavino (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-6470) ArrayIndexOutOfBoundsException on range query from client
Date Tue, 10 Dec 2013 13:40:08 GMT
Enrico Scalavino created CASSANDRA-6470:

             Summary: ArrayIndexOutOfBoundsException on range query from client
                 Key: CASSANDRA-6470
             Project: Cassandra
          Issue Type: Bug
            Reporter: Enrico Scalavino

schema: CREATE TABLE inboxkeyspace.inboxes(user_id bigint, message_id bigint, thread_id bigint,
network_id bigint, read boolean, PRIMARY KEY(user_id, message_id)) WITH CLUSTERING ORDER BY
(message_id DESC);

query: SELECT thread_id, message_id, network_id FROM inboxkeyspace.inboxes WHERE user_id =
? AND message_id < ? LIMIT ? ");

The query works if run via cqlsh. However, when run through the datastax client, on the client
side we get a timeout exception and on the server side, the Cassandra log shows this exception:

ERROR [ReadStage:4190] 2013-12-10 13:18:03,579 (line 187) Exception in
thread Thread[ReadStage:4190,5,main]
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.cassandra.service.StorageProxy$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.cassandra.db.filter.SliceQueryFilter.start(
        at org.apache.cassandra.db.index.composites.CompositesSearcher.makePrefix(
        at org.apache.cassandra.db.index.composites.CompositesSearcher.getIndexedIterator(
        at org.apache.cassandra.db.PagedRangeCommand.executeLocally(
        at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(
        at org.apache.cassandra.service.StorageProxy$
        ... 3 more

This message was sent by Atlassian JIRA

View raw message