开源Cassandra 3.0.9升级到4.0.11时出错

问题描述 投票:0回答:0

我一直在尝试将我们现有的开源cassandra集群从3.0.9版本升级到4.0.11。我一直遵循标准 OP 进行升级,逐个节点进行。但是升级第一个节点后,即使该节点加入集群并且正常,我也会收到以下错误。客户端在连接到节点时也会遇到持续失败。

该集群是 2 个数据中心设置,均运行 3.0.9,每个 DC 上运行 3 个节点。如果这响起请告诉我

ERROR [Messaging-EventLoop-3-1] 2023-08-01 06:15:49,140 InboundMessageHandler.java:300 - /x.x.x.x:7000->/x.x.x.x:7000-LEGACY_MESSAGES-e562c2ab unexpected exception caught while processing inbound messages; terminating connection
org.apache.cassandra.net.Crc$InvalidCrc: Read 1429076480, Computed -900387334
    at org.apache.cassandra.net.InboundMessageHandler.processCorruptFrame(InboundMessageHandler.java:234)
    at org.apache.cassandra.net.AbstractMessageHandler.process(AbstractMessageHandler.java:220)
    at org.apache.cassandra.net.FrameDecoder.deliver(FrameDecoder.java:321)
    at org.apache.cassandra.net.FrameDecoder.channelRead(FrameDecoder.java:285)
    at org.apache.cassandra.net.FrameDecoder.channelRead(FrameDecoder.java:273)
    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 org.apache.cassandra.net.FrameDecoderLegacyLZ4$LZ4Decoder.channelRead(FrameDecoderLegacyLZ4.java:143)
    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.lang.Thread.run(Thread.java:748)
INFO  [Messaging-EventLoop-3-2] 2023-08-01 06:15:49,194 InboundConnectionInitiator.java:464 - /x.x.x.x:7000(/x..x.x.x:25217)->/x.x.x.x:7000-LEGACY_MESSAGES-0436552d messaging connection established, version = 10, framing = LZ4, encryption = unencrypted
INFO  [Messaging-EventLoop-3-3] 2023-08-01 06:15:49,215 InboundConnectionInitiator.java:464 - /x.x.x.x:7000(/x.x.x.x:55335)->/x.x.x.x:7000-LEGACY_MESSAGES-664a3d54 messaging connection established, version = 10, framing = LZ4, encryption = unencrypted
ERROR [Messaging-EventLoop-3-3] 2023-08-01 06:15:49,215 InboundMessageHandler.java:182 - /x.x.x.x:7000->/x.x.x.x:7000-LEGACY_MESSAGES-664a3d54 unexpected exception caught while deserializing a message
org.apache.cassandra.net.InvalidSerializedSizeException: Invalid serialized size; expected 224, actual size at least 223, for verb READ_REQ
    at org.apache.cassandra.net.InboundMessageHandler.processSmallMessage(InboundMessageHandler.java:170)
    at org.apache.cassandra.net.InboundMessageHandler.processOneContainedMessage(InboundMessageHandler.java:151)
    at org.apache.cassandra.net.AbstractMessageHandler.processFrameOfContainedMessages(AbstractMessageHandler.java:242)
    at org.apache.cassandra.net.AbstractMessageHandler.processIntactFrame(AbstractMessageHandler.java:227)
    at org.apache.cassandra.net.AbstractMessageHandler.process(AbstractMessageHandler.java:218)
    at org.apache.cassandra.net.FrameDecoder.deliver(FrameDecoder.java:321)
    at org.apache.cassandra.net.FrameDecoder.channelRead(FrameDecoder.java:285)
    at org.apache.cassandra.net.FrameDecoder.channelRead(FrameDecoder.java:273)
    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 org.apache.cassandra.net.FrameDecoderLegacyLZ4$LZ4Decoder.channelRead(FrameDecoderLegacyLZ4.java:143)
    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.lang.Thread.run(Thread.java:748)
ERROR [Messaging-EventLoop-3-3] 2023-08-01 06:15:49,215 InboundMessageHandler.java:300 - /x.x.x.x:7000->/x.x.x.x:7000-LEGACY_MESSAGES-664a3d54 unexpected exception caught while processing inbound messages; terminating connection
org.apache.cassandra.net.Crc$InvalidCrc: Read 1429076544, Computed -900387334
    at org.apache.cassandra.net.InboundMessageHandler.processCorruptFrame(InboundMessageHandler.java:234)
    at org.apache.cassandra.net.AbstractMessageHandler.process(AbstractMessageHandler.java:220)
    at org.apache.cassandra.net.FrameDecoder.deliver(FrameDecoder.java:321)
    at org.apache.cassandra.net.FrameDecoder.channelRead(FrameDecoder.java:285)
    at org.apache.cassandra.net.FrameDecoder.channelRead(FrameDecoder.java:273)
    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 org.apache.cassandra.net.FrameDecoderLegacyLZ4$LZ4Decoder.channelRead(FrameDecoderLegacyLZ4.java:143)
    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.lang.Thread.run(Thread.java:748)

尝试:从 3.0.9 升级到 4.0.11

cassandra upgrade open-source cassandra-4.0
© www.soinside.com 2019 - 2024. All rights reserved.