cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10988) isInclusive and boundsAsComposites in Restriction take bounds in different order
Date Thu, 21 Apr 2016 07:25:25 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251465#comment-15251465
] 

Alex Petrov commented on CASSANDRA-10988:
-----------------------------------------

Made the suggested changes (move the logic to {{SelectStatement}}). Also, made the mixed order
columns tests also test with {{COMPACT}} tables and added all tests to both {{3.0}} and {{trunk}}
(all are passing}}. 

|code|utest|dtest|
|[2.2|https://github.com/ifesdjeen/cassandra/tree/10988-2.2]|[testall|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-10988-2.2-testall/]|[dtest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-10988-2.2-dtest/]|
|[3.0|https://github.com/ifesdjeen/cassandra/tree/10988-3.0]|[testall|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-10988-3.0-testall/]|
|[trunk|https://github.com/ifesdjeen/cassandra/tree/10988-trunk]|[testall|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-10988-trunk-testall/]|

(I skipped dtests for {{3.0}} and {{trunk}} since there were no code changes, tests only)
Ran all failing unit tests locally, they're all passing. Dtest shows no failures.

> isInclusive and boundsAsComposites in Restriction take bounds in different order
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10988
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10988
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Vassil Hristov
>            Assignee: Alex Petrov
>             Fix For: 2.2.x
>
>
> After we've upgraded our cluster to version 2.1.11, we started getting the bellow exceptions
for some of our queries. Issue seems to be very similar to CASSANDRA-7284.
> Code to reproduce:
> {code:java}
>         createTable("CREATE TABLE %s (" +
>                     "    a text," +
>                     "    b int," +
>                     "    PRIMARY KEY (a, b)" +
>                     ") WITH COMPACT STORAGE" +
>                     "    AND CLUSTERING ORDER BY (b DESC)");
>         execute("insert into %s (a, b) values ('a', 2)");
>         execute("SELECT * FROM %s WHERE a = 'a' AND b > 0");
> {code}
> {code:java}
> java.lang.ClassCastException: org.apache.cassandra.db.composites.Composites$EmptyComposite
cannot be cast to org.apache.cassandra.db.composites.CellName
>         at org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:188)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.db.composites.AbstractSimpleCellNameType.makeCellName(AbstractSimpleCellNameType.java:125)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.db.composites.AbstractCellNameType.makeCellName(AbstractCellNameType.java:254)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.makeExclusiveSliceBound(SelectStatement.java:1197)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.applySliceRestriction(SelectStatement.java:1205)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.processColumnFamily(SelectStatement.java:1283)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.process(SelectStatement.java:1250)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.processResults(SelectStatement.java:299)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:276)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:224)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:67)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:238)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:493)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:138)
~[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:439)
[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:335)
[apache-cassandra-2.1.11.jar:2.1.11]
>         at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66]
>         at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
[apache-cassandra-2.1.11.jar:2.1.11]
>         at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-2.1.11.jar:2.1.11]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message