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

java.lang.UnsupportedOperationException after upgrade to 3.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      Upgrade tests are showing a potential issue. I'm seeing this during rolling upgrades to 3.0 alpha 1, after one node has been upgraded to the alpha.

      I will attach cassandra logs here, node1.log is where most of the failures are seen.

      ERROR [MessagingService-Incoming-/127.0.0.1] 2015-08-17 12:22:06,888 CassandraDaemon.java:189 - Exception in thread Thread[MessagingService-Incoming-/127.0.0.1,5,main]
      java.lang.UnsupportedOperationException: null
              at org.apache.cassandra.db.ReadCommand$Serializer.deserialize(ReadCommand.java:485) ~[main/:na]
              at org.apache.cassandra.db.ReadCommand$Serializer.deserialize(ReadCommand.java:444) ~[main/:na]
              at org.apache.cassandra.net.MessageIn.read(MessageIn.java:98) ~[main/:na]
              at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:195) ~[main/:na]
              at org.apache.cassandra.net.IncomingTcpConnection.receiveMessages(IncomingTcpConnection.java:172) ~[main/:na]
              at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:90) ~[main/:na]
      INFO  [GossipStage:1] 2015-08-17 12:22:06,914 StorageService.java:1886 - Node /127.0.0.2 state jump to normal
      ERROR [MessagingService-Incoming-/127.0.0.1] 2015-08-17 12:22:06,915 CassandraDaemon.java:189 - Exception in thread Thread[MessagingService-Incoming-/127.0.0.1,5,main]
      java.lang.UnsupportedOperationException: null
              at org.apache.cassandra.db.ReadCommand$Serializer.deserialize(ReadCommand.java:485) ~[main/:na]
              at org.apache.cassandra.db.ReadCommand$Serializer.deserialize(ReadCommand.java:444) ~[main/:na]
              at org.apache.cassandra.net.MessageIn.read(MessageIn.java:98) ~[main/:na]
              at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:195) ~[main/:na]
              at org.apache.cassandra.net.IncomingTcpConnection.receiveMessages(IncomingTcpConnection.java:172) ~[main/:na]
              at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:90) ~[main/:na]
      

      Another exception showing in logs:

      ERROR [SharedPool-Worker-1] 2015-08-17 12:22:19,358 ErrorMessage.java:336 - Unexpected exception during request
      java.lang.UnsupportedOperationException: Version is 9
              at org.apache.cassandra.db.partitions.PartitionUpdate$PartitionUpdateSerializer.serializedSize(PartitionUpdate.java:760) ~[main/:na]
              at org.apache.cassandra.db.Mutation$MutationSerializer.serializedSize(Mutation.java:334) ~[main/:na]
              at org.apache.cassandra.db.Mutation$MutationSerializer.serializedSize(Mutation.java:246) ~[main/:na]
              at org.apache.cassandra.net.MessageOut.payloadSize(MessageOut.java:166) ~[main/:na]
              at org.apache.cassandra.net.OutboundTcpConnectionPool.getConnection(OutboundTcpConnectionPool.java:67) ~[main/:na]
              at org.apache.cassandra.net.MessagingService.getConnection(MessagingService.java:587) ~[main/:na]
              at org.apache.cassandra.net.MessagingService.sendOneWay(MessagingService.java:737) ~[main/:na]
              at org.apache.cassandra.net.MessagingService.sendRR(MessagingService.java:702) ~[main/:na]
              at org.apache.cassandra.service.StorageProxy.sendToHintedEndpoints(StorageProxy.java:1084) ~[main/:na]
              at org.apache.cassandra.service.StorageProxy$2.apply(StorageProxy.java:125) ~[main/:na]
              at org.apache.cassandra.service.StorageProxy.performWrite(StorageProxy.java:942) ~[main/:na]
              at org.apache.cassandra.service.StorageProxy.mutate(StorageProxy.java:549) ~[main/:na]
              at org.apache.cassandra.service.StorageProxy.mutateWithTriggers(StorageProxy.java:720) ~[main/:na]
              at org.apache.cassandra.cql3.statements.ModificationStatement.executeWithoutCondition(ModificationStatement.java:613) ~[main/:na]
              at org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:599) ~[main/:na]
              at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:204) ~[main/:na]
              at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:470) ~[main/:na]
              at org.apache.cassandra.cql3.QueryProcessor.processPrepared(QueryProcessor.java:447) ~[main/:na]
              at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:139) ~[main/:na]
              at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:507) [main/:na]
              at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:401) [main/:na]
              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_45]
              at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$FutureTask.run(AbstractTracingAwareExecutorService.java:164) [main/:na]
              at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [main/:na]
              at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
      

      I'm seeing several occurences of both exceptions above.

        Attachments

        1. node3.log
          96 kB
          Russ Hatch
        2. node2.log
          186 kB
          Russ Hatch
        3. node1.log
          218 kB
          Russ Hatch

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhatch Russ Hatch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: