Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-10711

NoSuchElementException when executing empty batch.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0.3, 3.2
    • Legacy/CQL
    • Cassandra 3.0, OSS 42.1

    • Normal

    Description

      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]
      

      Attachments

        Activity

          People

            jasonstack Zhao Yang
            shinigami Jaroslav Kamenik
            Zhao Yang
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: