[ 
https://issues.apache.org/jira/browse/CASSANDRA-18704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750008#comment-17750008
 ] 

Maxim Muzafarov commented on CASSANDRA-18704:
---------------------------------------------

The problem was with the test itself, so definitely not a regression. The test 
initiated the outbound connection twice, so we handled the accept response 
message twice as well (some of the messages are just swallowed without any 
error propagation to the test), which, in turn, leads to the above errors. 
These stacktraces are related to the same cause. 

> Test Failure: HandshakeTest.testOutboundConnectionfFallbackDuringUpgrades 
> ClassCastException: Established ->  Disconnected
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18704
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18704
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Messaging/Internode
>            Reporter: Michael Semb Wever
>            Assignee: Maxim Muzafarov
>            Priority: Normal
>             Fix For: 5.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The following has been witnesses a number of times in repeated runs, in 
> different jdks and different test configurations.
> {noformat}
> java.lang.ClassCastException: class 
> org.apache.cassandra.net.OutboundConnection$Established cannot be cast to 
> class org.apache.cassandra.net.OutboundConnection$Disconnected 
> (org.apache.cassandra.net.OutboundConnection$Established and 
> org.apache.cassandra.net.OutboundConnection$Disconnected are in unnamed 
> module of loader 'app')
>       at 
> org.apache.cassandra.net.OutboundConnection$State.disconnected(OutboundConnection.java:201)
>       at 
> org.apache.cassandra.net.OutboundConnection$1Initiate.initiate(OutboundConnection.java:1248)
>       at 
> org.apache.cassandra.net.OutboundConnection.initiate(OutboundConnection.java:1254)
>       at 
> org.apache.cassandra.net.HandshakeTest.initiateOutbound(HandshakeTest.java:365)
>       at 
> org.apache.cassandra.net.HandshakeTest.testOutboundFallbackOnSSLHandshakeFailure(HandshakeTest.java:380)
>       at 
> org.apache.cassandra.net.HandshakeTest.testOutboundConnectionfFallbackDuringUpgrades(HandshakeTest.java:255)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> {noformat}
> ref: 
> https://app.circleci.com/pipelines/github/michaelsembwever/cassandra/217/workflows/ce7392fa-756a-4392-b3a5-206bb2940553/jobs/15965/tests
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to