Muhammad created CASSANDRA-19244: ------------------------------------ Summary: ArrayIndexOutOfBoundsException seen in mixed mode cluster during upgrade Key: CASSANDRA-19244 URL: https://issues.apache.org/jira/browse/CASSANDRA-19244 Project: Cassandra Issue Type: Bug Components: Cluster/Gossip Reporter: Muhammad
I am trying to upgrade Cassandra 3.11.13 cluster to 4.1.3, and during the upgrade observed following Exception on 3.11.x nodes. {code:java} ERROR [MessagingService-Incoming-/X.X.X.X] 2023-12-28 07:03:18,940 CassandraDaemon.java:244 - Exception in thread Thread[MessagingService-Incoming-/X.X.X.X,5,main] java.lang.ArrayIndexOutOfBoundsException: 29 at org.apache.cassandra.gms.EndpointStateSerializer.deserialize(EndpointState.java:220) at org.apache.cassandra.gms.EndpointStateSerializer.deserialize(EndpointState.java:191) at org.apache.cassandra.gms.GossipDigestAck2Serializer.deserialize(GossipDigestAck2.java:73) at org.apache.cassandra.gms.GossipDigestAck2Serializer.deserialize(GossipDigestAck2.java:52) at org.apache.cassandra.net.MessageIn.read(MessageIn.java:123) at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:207) at org.apache.cassandra.net.IncomingTcpConnection.receiveMessages(IncomingTcpConnection.java:195) at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:98) {code} There is a difference between the ApplicationStates Enum in between 3.11 & 4.1, with the former containing 25 states only. However, I think that padding state shouldn't be used by the 4.1 during gossip exchange. This only happens when a Gossip is initiated by a 4.1 node to a 3.11 node, and 3.11 fails to send a GOSSIP_DIGEST_ACK. {code:java} GossipDigestSynVerbHandler.java:110 - Sending a GossipDigestAckMessage to /X.X.X.X TRACE [****] [GossipStage:1] 2023-12-28 05:21:45,620 MessagingService.java:942 - Y.Y.Y.Y sending GOSSIP_DIGEST_ACK to 731645@/X.X.X.X TRACE [****] [MessagingService-Incoming-/X.X.X.X] 2023-12-28 05:21:45,645 IncomingTcpConnection.java:125 - Closing socket Socket[addr=/X.X.X.X,port=51518,localport=7001] - isclosed: false ERROR [****] [MessagingService-Incoming-/X.X.X.X] 2023-12-28 05:21:45,645 CassandraDaemon.java:244 - Exception in thread Thread[MessagingService-Incoming-/X.X.X.X,5,main] java.lang.ArrayIndexOutOfBoundsException: 29 {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org