cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A Verma (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-6612) Query failing due to AssertionError
Date Wed, 22 Jan 2014 23:21:22 GMT
A Verma created CASSANDRA-6612:

             Summary: Query failing due to AssertionError
                 Key: CASSANDRA-6612
             Project: Cassandra
          Issue Type: Bug
         Environment: Cassandra-2.0.4, CQL3, datastax driver 2.0.0-rc2
            Reporter: A Verma

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:
select count(*) from session_data where app_name=? and account=? and last_access > ?

But after even a single row is inserted into the table, the query fails with the following
	at org.apache.cassandra.db.filter.ExtendedFilter$WithClauses.getExtraFilter(
	at org.apache.cassandra.db.ColumnFamilyStore.filter(
	at org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(
	at org.apache.cassandra.db.PagedRangeCommand.executeLocally(
	at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(
	at org.apache.cassandra.service.StorageProxy$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Here is the schema I am using:

    CREATE KEYSPACE session WITH replication= {'class': 'SimpleStrategy', 'replication_factor':

    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);

This message was sent by Atlassian JIRA

View raw message