You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Ryan Martin <Ry...@axiell.com> on 2022/08/18 14:21:16 UTC

DecoderException when moving to Cassandra 4

Hi,

We are upgrading our Cassandra from 3.11 to 4.
When we connect to the new Cassandra instance with our client everything is working fine however, we get this this error in the logs (SSL is not enabled and we are using the default cassandra.yaml):

ERROR [Messaging-EventLoop-3-1] 2022-08-18 14:10:34,707 InboundConnectionInitiator.java:360 - Failed to properly handshake with peer /192.168.32.1:40430. Closing the channel.
io.netty.handler.codec.DecoderException: org.apache.cassandra.net.Message$InvalidLegacyProtocolMagic: Read 1195725856, Expected -900387334
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:478)
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
      at io.netty.handler.codec.ByteToMessageDecoder.handlerRemoved(ByteToMessageDecoder.java:253)
      at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:515)
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:447)
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
      at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
      at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)
      at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)
      at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
      at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
      at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
      at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.cassandra.net.Message$InvalidLegacyProtocolMagic: Read 1195725856, Expected -900387334
      at org.apache.cassandra.net.Message.validateLegacyProtocolMagic(Message.java:340)
      at org.apache.cassandra.net.HandshakeProtocol$Initiate.maybeDecode(HandshakeProtocol.java:167)
      at org.apache.cassandra.net.InboundConnectionInitiator$Handler.initiate(InboundConnectionInitiator.java:242)
      at org.apache.cassandra.net.InboundConnectionInitiator$Handler.decode(InboundConnectionInitiator.java:235)
      at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:508)
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:447)
      ... 22 common frames omitted

Is this something that can be ignored?

I found this ticket<https://issues.apache.org/jira/browse/CASSANDRA-16144> that suggests if SSL is disabled, this error is produced, but it should be a warn or info log instead.

Regards
Ryan


________________________________

Axiell Limited (registered no. 01607548) is a private limited company registered in England. The address of the Registered Office is Witan Gate House, 500-600 Witan Gate West, Milton Keynes, Buckinghamshire MK9 1SH. VAT registration no. GB 610 5069 78.

DISCLAIMER: This e-mail is only for the use of the intended recipient and may contain confidential information. If you have received this e-mail in error, please notify the sender immediately, delete it and do not use or disseminate its contents. Any views or opinions are solely those of the author and do not necessarily represent those of the Company. This e-mail may be monitored.