cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Zimmer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7383) java.lang.IndexOutOfBoundsException
Date Thu, 12 Jun 2014 07:24:02 GMT
Thomas Zimmer created CASSANDRA-7383:
----------------------------------------

             Summary: java.lang.IndexOutOfBoundsException
                 Key: CASSANDRA-7383
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7383
             Project: Cassandra
          Issue Type: Bug
            Reporter: Thomas Zimmer
             Fix For: 2.1.0


Hi there,

I might have found a problem with rc-1. Here is how I could reproduce the error. First create
a table:

CREATE TABLE foo (
    a varchar,
    b varchar,
    bar Set<varchar>

    PRIMARY KEY (a, b)
);

Second step: I put a secondary index on bar: 
CREATE INDEX my_index ON foo (bar);

When now using cqlsh and running a query like this:
select * from Foo where a = 'test' and bar contains 'test_value';

it will fail :
errors={}, last_host=127.0.0.1

Here are the log entries:

WARN  [SharedPool-Worker-2] 2014-06-12 09:16:43,611 AbstractTracingAwareExecutorService.java:166
- Uncaught exception on thread Thread[SharedPool-Worker-2,5,main]: {}
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2015)
~[main/:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_10]
	at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:162)
~[main/:na]
	at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:103) [main/:na]
	at java.lang.Thread.run(Thread.java:722) [na:1.7.0_10]
Caused by: java.lang.IndexOutOfBoundsException: null
	at org.apache.cassandra.db.composites.Composites$EmptyComposite.get(Composites.java:60) ~[main/:na]
	at org.apache.cassandra.db.index.composites.CompositesIndexOnCollectionKey.makeIndexColumnPrefix(CompositesIndexOnCollectionKey.java:78)
~[main/:na]
	at org.apache.cassandra.db.index.composites.CompositesSearcher.makePrefix(CompositesSearcher.java:82)
~[main/:na]
	at org.apache.cassandra.db.index.composites.CompositesSearcher.getIndexedIterator(CompositesSearcher.java:116)
~[main/:na]
	at org.apache.cassandra.db.index.composites.CompositesSearcher.search(CompositesSearcher.java:68)
~[main/:na]
	at org.apache.cassandra.db.index.SecondaryIndexManager.search(SecondaryIndexManager.java:589)
~[main/:na]
	at org.apache.cassandra.db.ColumnFamilyStore.search(ColumnFamilyStore.java:2060) ~[main/:na]
	at org.apache.cassandra.db.RangeSliceCommand.executeLocally(RangeSliceCommand.java:131) ~[main/:na]
	at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1368)
~[main/:na]
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2011)
~[main/:na]
	... 4 common frames omitted



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message