cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Zimmer (JIRA)" <>
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
             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:

    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=

Here are the log entries:

WARN  [SharedPool-Worker-2] 2014-06-12 09:16:43,611
- Uncaught exception on thread Thread[SharedPool-Worker-2,5,main]: {}
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
	at org.apache.cassandra.service.StorageProxy$
	at java.util.concurrent.Executors$ ~[na:1.7.0_10]
	at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$
	at [main/:na]
	at [na:1.7.0_10]
Caused by: java.lang.IndexOutOfBoundsException: null
	at org.apache.cassandra.db.composites.Composites$EmptyComposite.get( ~[main/:na]
	at org.apache.cassandra.db.index.composites.CompositesIndexOnCollectionKey.makeIndexColumnPrefix(
	at org.apache.cassandra.db.index.composites.CompositesSearcher.makePrefix(
	at org.apache.cassandra.db.index.composites.CompositesSearcher.getIndexedIterator(
	at ~[main/:na]
	at org.apache.cassandra.db.RangeSliceCommand.executeLocally( ~[main/:na]
	at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(
	at org.apache.cassandra.service.StorageProxy$
	... 4 common frames omitted

This message was sent by Atlassian JIRA

View raw message