cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Tolley (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-6333) ArrayIndexOutOfBound when using count(*) with over 10,000 rows
Date Tue, 12 Nov 2013 17:01:21 GMT
Tyler Tolley created CASSANDRA-6333:

             Summary: ArrayIndexOutOfBound when using count(*) with over 10,000 rows
                 Key: CASSANDRA-6333
             Project: Cassandra
          Issue Type: Bug
          Components: Core
         Environment: Cassandra 2.0.2, Ubuntu 12.04.3 LTS, Oracle Java 1.7.0_21
            Reporter: Tyler Tolley

We've been getting a TSocket read 0 bytes error when we try and run SELECT count(*) FROM <table>
if the table has over 10,000 rows.

I've been able to reproduce the problem by using cassandra-stress to insert different number
of rows. When I insert under 10,000, the count is returned. When I insert exactly 10,000,
I get a message that my results were limited to 10,000 by default. If insert 10,001, I get
the exception below.

ERROR [Thrift:4] 2013-11-12 09:54:04,850 (line 212) Error occurred
during processing of message.
java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.elementData(
	at java.util.ArrayList.remove(
	at org.apache.cassandra.cql3.ResultSet.trim(
	at org.apache.cassandra.cql3.statements.SelectStatement.process(
	at org.apache.cassandra.cql3.statements.SelectStatement.pageCountQuery(
	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.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$

This message was sent by Atlassian JIRA

View raw message