cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hust (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10711) NoSuchElementException when executing empty batch.
Date Mon, 16 Nov 2015 22:54:11 GMT

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

Andrew Hust commented on CASSANDRA-10711:
-----------------------------------------

- confirmed that 2.2 {{73a730f926d25a7d4f693507937b8565b701259c}} does not throw error
- confirmed both 3.0 {{c0480d8bbddf111e4cd7c67ef7c0daeec3ece2dc}} and trunk {{0010fce6d2c9a811eb66de077b69a83dce29a6ff}}
throw same {{NoSuchElementException}} in cqlsh
- added [dtest|https://github.com/riptano/cassandra-dtest/pull/662] to verify fix when made

> NoSuchElementException when executing empty batch.
> --------------------------------------------------
>
>                 Key: CASSANDRA-10711
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10711
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Cassandra 3.0, OSS 42.1
>            Reporter: Jaroslav Kamenik
>             Fix For: 3.0.1, 3.1
>
>
> After upgrade to C* 3.0, it fails when executes empty batch:
> java.util.NoSuchElementException: null
>         at java.util.ArrayList$Itr.next(ArrayList.java:854) ~[na:1.8.0_60]
>         at org.apache.cassandra.service.StorageProxy.mutateWithTriggers(StorageProxy.java:737)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.cql3.statements.BatchStatement.executeWithoutConditions(BatchStatement.java:356)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.cql3.statements.BatchStatement.execute(BatchStatement.java:337)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.cql3.statements.BatchStatement.execute(BatchStatement.java:323)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.cql3.QueryProcessor.processBatch(QueryProcessor.java:490)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.cql3.QueryProcessor.processBatch(QueryProcessor.java:480)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.transport.messages.BatchMessage.execute(BatchMessage.java:217)
~[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:507)
[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:401)
[apache-cassandra-3.0.0.jar:3.0.0]
>         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_60]
>         at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164)
[apache-cassandra-3.0.0.jar:3.0.0]
>         at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-3.0.0.jar:3.0.0]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]



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

Mime
View raw message