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

internode_encryption + bootstrapping a node fails due to calling an unsupported method on an SSL Socket

    XMLWordPrintableJSON

Details

    • Critical

    Description

      The problem is that you can't call shutdownInput() / shutdownOutput() on an SSLSocket because it doesn't comply with the TLS protocol

      This got introduced by https://issues.apache.org/jira/browse/CASSANDRA-11841

      INFO  [RequestResponseStage-1] 2016-11-11 11:27:06,352  Gossiper.java:1019 - InetAddress /10.200.182.127 is now UP
      INFO  [STREAM-INIT-/10.200.182.127:33555] 2016-11-11 11:27:42,799  StreamResultFuture.java:116 - [Stream #dbd51f70-a801-11e6-8ca0-ab33b3e846c9 ID#0] Creating new streaming plan for Bootstrap
      ERROR [STREAM-INIT-/10.200.182.127:33555] 2016-11-11 11:27:42,845  IncomingStreamingConnection.java:80 - Error while reading from socket from /10.200.182.127:33555.
      java.lang.UnsupportedOperationException: The method shutdownInput() is not supported in SSLSocket
              at sun.security.ssl.BaseSSLSocketImpl.shutdownInput(BaseSSLSocketImpl.java:215) ~[na:1.8.0_40]
              at org.apache.cassandra.streaming.ConnectionHandler.initiateOnReceivingSide(ConnectionHandler.java:109) ~[cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.streaming.StreamResultFuture.attachConnection(StreamResultFuture.java:138) ~[cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.streaming.StreamResultFuture.initReceivingSide(StreamResultFuture.java:122) ~[cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.net.IncomingStreamingConnection.run(IncomingStreamingConnection.java:76) ~[cassandra-all-3.10.1433.jar:3.10.1433]
      ERROR [STREAM-OUT-/10.200.182.127:33555] 2016-11-11 11:27:42,857  StreamSession.java:593 - [Stream #dbd51f70-a801-11e6-8ca0-ab33b3e846c9] Streaming error occurred on session with peer 10.200.182.127
      java.net.SocketException: Socket is closed
              at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1520) ~[na:1.8.0_40]
              at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1541) ~[na:1.8.0_40]
              at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71) ~[na:1.8.0_40]
              at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) ~[na:1.8.0_40]
              at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) ~[na:1.8.0_40]
              at org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.flush(WrappedDataOutputStreamPlus.java:66) ~[cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(ConnectionHandler.java:418) [cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:389) [cassandra-all-3.10.1433.jar:3.10.1433]
              at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      INFO  [STREAM-OUT-/10.200.182.127:33555] 2016-11-11 11:27:42,858  StreamResultFuture.java:187 - [Stream #dbd51f70-a801-11e6-8ca0-ab33b3e846c9] Session with /10.200.182.127 is complete
      WARN  [STREAM-OUT-/10.200.182.127:33555] 2016-11-11 11:27:42,863  StreamResultFuture.java:214 - [Stream #dbd51f70-a801-11e6-8ca0-ab33b3e846c9] Stream failed
      ERROR [STREAM-OUT-/10.200.182.127:33555] 2016-11-11 11:27:42,864  StreamSession.java:593 - [Stream #dbd51f70-a801-11e6-8ca0-ab33b3e846c9] Streaming error occurred on session with peer 10.200.182.127
      java.net.SocketException: Socket is closed
              at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1520) ~[na:1.8.0_40]
              at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1541) ~[na:1.8.0_40]
              at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71) ~[na:1.8.0_40]
              at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) ~[na:1.8.0_40]
              at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) ~[na:1.8.0_40]
              at org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.flush(WrappedDataOutputStreamPlus.java:66) ~[cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(ConnectionHandler.java:418) [cassandra-all-3.10.1433.jar:3.10.1433]
              at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:397) [cassandra-all-3.10.1433.jar:3.10.1433]
              at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      

      Attachments

        Activity

          People

            pauloricardomg Paulo Motta
            eduard.tudenhoefner Eduard Tudenhoefner
            Paulo Motta
            Sam Tunnicliffe
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: