cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6343) C* throws AssertionError when using paging and reverse ordering
Date Wed, 13 Nov 2013 15:33:56 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-6343:
----------------------------------------

    Attachment: 6343.txt

Seems reversed completely slipped through the cracks somehow. Attaching patch to fix (includes
a unit test).

> C* throws AssertionError when using paging and reverse ordering
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-6343
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6343
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Last time issue has been reproduced with C* version is 2.0.0, DataStax
CQL driver version 2.0.0-beta1 on a single node.
>            Reporter: Alexey Chumakov
>            Assignee: Sylvain Lebresne
>             Fix For: 2.0.3
>
>         Attachments: 6343.txt
>
>
> We have a table with CLUSTERING ORDER BY (date DESC). We try to do a query C* with paging
and ORDER BY date ASC. 
> This leads to the following exception in C* when pager goes to the last page:
> {quote}
> ERROR [Native-Transport-Requests:1287744] 2013-10-30 01:53:14,720 ErrorMessage.java (line
210) Unexpected exception during request
> java.lang.AssertionError: Added column does not sort as the first column
>         at org.apache.cassandra.db.ArrayBackedSortedColumns.addColumn(ArrayBackedSortedColumns.java:115)
>         at org.apache.cassandra.db.ColumnFamily.addColumn(ColumnFamily.java:116)
>         at org.apache.cassandra.service.pager.AbstractQueryPager.discardLast(AbstractQueryPager.java:238)
>         at org.apache.cassandra.service.pager.AbstractQueryPager.discardLast(AbstractQueryPager.java:182)
>         at org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:100)
>         at org.apache.cassandra.service.pager.SliceQueryPager.fetchPage(SliceQueryPager.java:33)
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:179)
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:56)
>         at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:101)
>         at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:235)
>         at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:139)
>         at org.apache.cassandra.transport.Message$Dispatcher.messageReceived(Message.java:296)
>         at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:45)
>         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:69)
>         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:724)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message