Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19218

NettyStreamingConnectionFactory lacks handling of outcomes other than success

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            jlewandowski Jacek Lewandowski

            Dates

              Created:
              Updated:

              Slack

                Issue deployment