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

'SSLEngine closed already' exception on failed outbound connection

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Degradation - Other Exception
    • Severity:
      Low
    • Complexity:
      Normal
    • Discovered By:
      User Report
    • Platform:
      All
    • Impacts:
      None
    • Since Version:
    • Test and Documentation Plan:
      Hide

      Run existing tests

      Show
      Run existing tests

      Description

      Occasionally Netty will invoke OutboundConnectionInitiator#exceptionCaught() handler to process an exception of the following kind:

      io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer
      

      When we invoke ctx.close() later in that method, the listener, set up in channelActive(), might be
      failed with an SSLException("SSLEngine closed already”) by Netty, and exceptionCaught() will be invoked
      once again, this time to handle the SSLException triggered by ctx.close().

      The exception at this stage is benign, and we shouldn't be double-logging the failure to connect.

        Attachments

          Activity

            People

            • Assignee:
              aleksey Aleksey Yeschenko
              Reporter:
              aleksey Aleksey Yeschenko
              Authors:
              Aleksey Yeschenko
              Reviewers:
              Aleksey Yeschenko, Alex Petrov, Norman Maurer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: