Details
-
Bug
-
Status: Triage Needed
-
Low
-
Resolution: Unresolved
-
None
-
Code - Bug - Unclear Impact
-
Low
-
Low Hanging Fruit
-
User Report
-
All
-
None
Description
This is not a critical issue, but the errors thrown when we try to connect with incompatible messaging version (for example from an sstable loader) are odd. We get weird looking class cast exceptions like this:
{format}Session peer /127.0.0.1:7012 Failed because of an unknown exception
java.lang.ClassCastException: class org.apache.cassandra.net.OutboundConnectionInitiator$Result$Incompatible cannot be cast to class org.apache.cassandra.net.OutboundConnectionInitiator$Result$Success (org.apache.cassandra.net.OutboundConnectionInitiator$Result$Incompatible and org.apache.cassandra.net.OutboundConnectionInitiator$Result$Success are in unnamed module of loader 'app')
org.apache.cassandra.net.OutboundConnectionInitiator$Result.success(OutboundConnectionInitiator.java:520)
org.apache.cassandra.streaming.async.NettyStreamingConnectionFactory.connect(NettyStreamingConnectionFactory.java:68)
{format}
We should probably handle that somehow and error out with a reasonable message, which at least would prove that we consciously refuse to connect.