[ https://issues.apache.org/jira/browse/CASSANDRA-6333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13821478#comment-13821478 ]
Sylvain Lebresne commented on CASSANDRA-6333: --------------------------------------------- Either that has been fixed in the current cassandra-2.0 tip or I'll need complete information to reproduce. I've added the following dtest: https://github.com/riptano/cassandra-dtest/commit/971c4d629a8524205d7bedc1f49315be043a6ceb and tried doing: {noformat} > ccm node1 stress -n 10001 ... > ccm node1 cqlsh Connected to test at 127.0.0.1:9160. [cqlsh 4.1.0 | Cassandra 2.0.2-SNAPSHOT | CQL spec 3.1.1 | Thrift protocol 19.38.0] Use HELP for help. cqlsh> use "Keyspace1"; cqlsh:Keyspace1> SELECT COUNT(*) FROM "Standard1" LIMIT 10002; count ------- 10001 (1 rows) {noformat} All of that seems to be working fine as far as I can tell. > ArrayIndexOutOfBound when using count(*) with over 10,000 rows > -------------------------------------------------------------- > > Key: CASSANDRA-6333 > URL: https://issues.apache.org/jira/browse/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 > Assignee: Sylvain Lebresne > > 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. > {code} > ERROR [Thrift:4] 2013-11-12 09:54:04,850 CustomTThreadPoolServer.java (line > 212) Error occurred during processing of message. > java.lang.ArrayIndexOutOfBoundsException: -1 > at java.util.ArrayList.elementData(ArrayList.java:371) > at java.util.ArrayList.remove(ArrayList.java:448) > at org.apache.cassandra.cql3.ResultSet.trim(ResultSet.java:92) > at > org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:848) > at > org.apache.cassandra.cql3.statements.SelectStatement.pageCountQuery(SelectStatement.java:196) > at > org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:163) > at > org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:57) > at > org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:129) > at > org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:145) > at > org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:136) > at > org.apache.cassandra.thrift.CassandraServer.execute_cql3_query(CassandraServer.java:1936) > at > org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4394) > at > org.apache.cassandra.thrift.Cassandra$Processor$execute_cql3_query.getResult(Cassandra.java:4378) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at > org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:722) > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)