cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-12903) internode_encryption + bootstrapping a node fails due to calling an unsupported method on an SSL Socket
Date Tue, 15 Nov 2016 11:53:58 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-12903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sam Tunnicliffe updated CASSANDRA-12903:
----------------------------------------
    Status: Awaiting Feedback  (was: In Progress)

The patch itself looks fine to me and I confirmed that the new test fails without it and passes
with it. Before committing though, I would like to verify that none of the existing tests
are broken (I'm pretty sure they won't be but it doesn't hurt to check). 

However, I couldn't find any indication that {{bootstrap_test}} is actually being run by any
CI jobs. I think this must have been the case for quite a while too, as {{simultaneous_bootstrap_test}}
now throws an error as it tries to call {{append}} on {{ignore_log_patterns}}, which was converted
to a tuple some time ago (in mid September in fact, by [c1834f1|https://github.com/beobal/apollo-dtest/commit/c1834f183cb58111d4d4b09fdb781455b7cbc56e]).

[~philipthompson] am I missing something obvious regarding {{bootstrap_test}}?

> internode_encryption + bootstrapping a node fails due to calling an unsupported method
on an SSL Socket
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-12903
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12903
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Streaming and Messaging
>            Reporter: Eduard Tudenhoefner
>            Assignee: Paulo Motta
>            Priority: Blocker
>             Fix For: 3.10
>
>
> 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
> {code}
> 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]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message