cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondřej Černoš (JIRA) <>
Subject [jira] [Created] (CASSANDRA-5421) java.lang.ArrayIndexOutOfBoundsException when cassandra started on hibernated virtual instance
Date Wed, 03 Apr 2013 09:39:15 GMT
Ondřej Černoš created CASSANDRA-5421:

             Summary: java.lang.ArrayIndexOutOfBoundsException when cassandra started on hibernated
virtual instance
                 Key: CASSANDRA-5421
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.1
            Reporter: Ondřej Černoš

We have a cql3 table records:

CREATE TABLE records (
    all varchar,
    record_id varchar,
    uid varchar,
    validity bigint,
    some_property int,
    PRIMARY KEY (all, record_id)
) WITH comment = 'Records';

with an index:

CREATE INDEX tokens_uid_idx ON tokens (uid);

We stored a couple of values in the table before the weekend with TTL set to see if the records
expire. The instance we tested the behaviour on was put to sleep during the weekend.

We started the instance yesterday on 11:31:41,809 and at 13:57:28,195 we tried the  following:

select * from tokens;

just to check the record were deleted on TTL.

This is what we got:

TSocket read 0 bytes

We found the following exception in the log:

ERROR 13:57:28,195 Error occurred during processing of message.
java.lang.ArrayIndexOutOfBoundsException: 1
	at org.apache.cassandra.cql3.statements.ColumnGroupMap.add(
	at org.apache.cassandra.cql3.statements.ColumnGroupMap.access$200(
	at org.apache.cassandra.cql3.statements.ColumnGroupMap$Builder.add(
	at org.apache.cassandra.cql3.statements.SelectStatement.process(
	at org.apache.cassandra.cql3.statements.SelectStatement.processResults(
	at org.apache.cassandra.cql3.statements.SelectStatement.execute(
	at org.apache.cassandra.cql3.statements.SelectStatement.execute(
	at org.apache.cassandra.cql3.QueryProcessor.processStatement(
	at org.apache.cassandra.cql3.QueryProcessor.process(
	at org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(
	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(
	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(
	at org.apache.thrift.ProcessFunction.process(
	at org.apache.thrift.TBaseProcessor.process(
	at org.apache.cassandra.thrift.CustomTThreadPoolServer$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Second try raised the following error in {{cqlsh}}:

Traceback (most recent call last):
  File "bin/cqlsh", line 1001, in perform_statement_untraced
    self.cursor.execute(statement, decoder=decoder)
  File "bin/../lib/", line 80, in execute
    response = self.get_response(prepared_q, cl)
  File "bin/../lib/", line 77, in
    return self.handle_cql_execution_errors(doquery, compressed_q, compress, cl)
  File "bin/../lib/", line 96, in
    return executor(*args, **kwargs)
  File "bin/../lib/", line
1782, in execute_cql3_query
    self.send_execute_cql3_query(query, compression, consistency)
  File "bin/../lib/", line
1793, in send_execute_cql3_query
  File "bin/../lib/",
line 293, in flush
  File "bin/../lib/", line
117, in write
    plus = self.handle.send(buff)
error: [Errno 32] Broken pipe

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message