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 6D27A1152D for ; Tue, 5 Aug 2014 21:03:13 +0000 (UTC) Received: (qmail 86738 invoked by uid 500); 5 Aug 2014 21:03:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 86705 invoked by uid 500); 5 Aug 2014 21:03:13 -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 86689 invoked by uid 99); 5 Aug 2014 21:03:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 21:03:13 +0000 Date: Tue, 5 Aug 2014 21:03:13 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6612) Query failing due to AssertionError 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-6612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-6612: -------------------------------------- Reviewer: Sam Tunnicliffe (was: Tyler Hobbs) [~beobal] to review > Query failing due to AssertionError > ----------------------------------- > > Key: CASSANDRA-6612 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6612 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra-2.0.4, CQL3, datastax driver 2.0.0-rc2 > Reporter: A Verma > Assignee: Sylvain Lebresne > Fix For: 2.0.10 > > Attachments: 6612.txt > > > I am trying out Cassandra for the first time and running it locally for simple session management db. [Cassandra-2.0.4, CQL3, datastax driver 2.0.0-rc2] > The following count query works fine when there is no data in the table: > {code} > select count(*) from session_data where app_name=? and account=? and last_access > ? > {code} > But after even a single row is inserted into the table, the query fails with the following error: > {code} > java.lang.AssertionError > at org.apache.cassandra.db.filter.ExtendedFilter$WithClauses.getExtraFilter(ExtendedFilter.java:258) > at org.apache.cassandra.db.ColumnFamilyStore.filter(ColumnFamilyStore.java:1719) > at org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1674) > at org.apache.cassandra.db.PagedRangeCommand.executeLocally(PagedRangeCommand.java:111) > at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1418) > at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1931) > 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:744) > {code} > Here is the schema I am using: > {code} > CREATE KEYSPACE session WITH replication= {'class': 'SimpleStrategy', 'replication_factor': 1}; > CREATE TABLE session_data ( > username text, > session_id text, > app_name text, > account text, > last_access timestamp, > created_on timestamp, > PRIMARY KEY (username, session_id, app_name, account) > ); > create index sessionIndex ON session_data (session_id); > create index sessionAppName ON session_data (app_name); > create index lastAccessIndex ON session_data (last_access); > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)