Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BED1E107BB for ; Tue, 17 Sep 2013 10:39:55 +0000 (UTC) Received: (qmail 84697 invoked by uid 500); 17 Sep 2013 10:39:55 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 84664 invoked by uid 500); 17 Sep 2013 10:39:54 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 84653 invoked by uid 99); 17 Sep 2013 10:39:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 10:39:52 +0000 Date: Tue, 17 Sep 2013 10:39:52 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6004) Performing a "Select count(*)" when replication factor < node count causes assertion error and timeout MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769411#comment-13769411 ] Sylvain Lebresne commented on CASSANDRA-6004: --------------------------------------------- bq. could you please confirm that the bugfix is not related to the condition I can. It's not related to the replication factor. And it will affect any select that requests a range of partition keys (select * without conditions is one) and that use the native protocol v2. > Performing a "Select count(*)" when replication factor < node count causes assertion error and timeout > ------------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-6004 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6004 > Project: Cassandra > Issue Type: Bug > Components: API > Environment: Two node setup > Ubuntu Server 12.04 > Tested on JDK 1.6 and 1.7 > Reporter: James P > Assignee: Sylvain Lebresne > Fix For: 2.0.1 > > Attachments: 6004.txt > > > When performing a "Select Count()" query on a table belonging to a keyspace with a replication factor less than the total node count, the following error is encountered which ultimately results in an rpc_timeout for the request: > ERROR 18:47:54,660 Exception in thread Thread[Thread-5,5,main] > java.lang.AssertionError > at org.apache.cassandra.db.filter.IDiskAtomFilter$Serializer.deserialize(IDiskAtomFilter.java:116) > at org.apache.cassandra.db.RangeSliceCommandSerializer.deserialize(RangeSliceCommand.java:247) > at org.apache.cassandra.db.RangeSliceCommandSerializer.deserialize(RangeSliceCommand.java:156) > at org.apache.cassandra.net.MessageIn.read(MessageIn.java:99) > at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:148) > at org.apache.cassandra.net.IncomingTcpConnection.handleModernVersion(IncomingTcpConnection.java:125) > at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:73) > The issue is not encountered when the replication factor is >= node count > To replicate the issue: > 1) Create the keyspace: CREATE KEYSPACE demodb WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor': 1}; > 2) Create the table CREATE TABLE users ( > user_name varchar, > password varchar, > gender varchar, > session_token varchar, > state varchar, > birth_year bigint, > PRIMARY KEY (user_name)); > 3) Do a CQL query: "SELECT count( * ) FROM demodb.users" ; > The issue is reproducible even if the table is empty. Both CQLSH and client (astyanax) api calls are affected. Tested on two different clusters (2-node and 8-node) -- 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: http://www.atlassian.com/software/jira