You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chris mildebrandt (JIRA)" <ji...@apache.org> on 2017/11/03 17:02:00 UTC

[jira] [Commented] (CASSANDRA-13991) NullPointerException when querying a table with a previous state

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

Chris mildebrandt commented on CASSANDRA-13991:
-----------------------------------------------

With Cassandra 2.2.11, I get this error instead:

{noformat}
ERROR 16:59:56 Unexpected exception during request
java.lang.IllegalArgumentException: Not enough bytes. Offset: 2. Length: 25194. Buffer size: 4
        at org.apache.cassandra.db.composites.AbstractCType.checkRemaining(AbstractCType.java:362) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.db.composites.AbstractCompoundCellNameType.fromByteBuffer(AbstractCompoundCellNameType.java:98) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:188) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.service.pager.RangeSliceQueryPager.<init>(RangeSliceQueryPager.java:60) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.service.pager.QueryPagers.pager(QueryPagers.java:115) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.service.pager.QueryPagers.pager(QueryPagers.java:126) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:178) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:76) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:226) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:492) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:469) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:142) ~[apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:507) [apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:401) [apache-cassandra-2.2.11.jar:2.2.11]
        at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [netty-all-4.0.44.Final.jar:4.0.44.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357) [netty-all-4.0.44.Final.jar:4.0.44.Final]
        at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:35) [netty-all-4.0.44.Final.jar:4.0.44.Final]
        at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:348) [netty-all-4.0.44.Final.jar:4.0.44.Final]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473) [na:1.7.0_151]
        at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164) [apache-cassandra-2.2.11.jar:2.2.11]
        at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-2.2.11.jar:2.2.11]
        at java.lang.Thread.run(Thread.java:748) [na:1.7.0_151]
{noformat}

> NullPointerException when querying a table with a previous state
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-13991
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13991
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Chris mildebrandt
>            Priority: Major
>         Attachments: CASSANDRA-13991.log
>
>
> Performing the following steps (using the gocql library) results in an NPE:
> * With a table of 12 entries, read all rows.
> * Set the page size to 1 and read the first row. Save the query state.
> * Read all the row again.
> * Set the page size to 5 and the page state to the previous state. (This is where the NPE occurs).
> This can be reproduced with the following project:
> https://github.com/eyeofthefrog/CASSANDRA-13991



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org