You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Peter Ivanov (JIRA)" <ji...@apache.org> on 2018/04/04 07:33:00 UTC
[jira] [Created] (IGNITE-8129) JDBC:
JdbcThinConnectionSSLTest.testDefaultContext
Peter Ivanov created IGNITE-8129:
------------------------------------
Summary: JDBC: JdbcThinConnectionSSLTest.testDefaultContext
Key: IGNITE-8129
URL: https://issues.apache.org/jira/browse/IGNITE-8129
Project: Ignite
Issue Type: Bug
Reporter: Peter Ivanov
Assignee: Taras Ledkov
Test fails under strange conditions: it runs successful if is executed by {{mvn test}} command and fails if is executed by {{mvn surefire:test}}. Seems some maven reactor dependencies and/or race condition problems.
{code}
[2018-04-04 05:52:26,389][ERROR][main][root] Test failed.
java.sql.SQLException: Failed to SSL connect to server [url=jdbc:ignite:thin://127.0.0.1:10800]
at org.apache.ignite.internal.jdbc.thin.JdbcThinSSLUtil.createSSLSocket(JdbcThinSSLUtil.java:93)
at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.connect(JdbcThinTcpIo.java:214)
at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.start(JdbcThinTcpIo.java:156)
at org.apache.ignite.internal.jdbc.thin.JdbcThinTcpIo.start(JdbcThinTcpIo.java:131)
at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.ensureConnected(JdbcThinConnection.java:156)
at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.<init>(JdbcThinConnection.java:145)
at org.apache.ignite.IgniteJdbcThinDriver.connect(IgniteJdbcThinDriver.java:157)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at org.apache.ignite.jdbc.thin.JdbcThinConnectionSSLTest.testDefaultContext(JdbcThinConnectionSSLTest.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:176)
at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2001)
at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:133)
at org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:1916)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at org.apache.ignite.internal.jdbc.thin.JdbcThinSSLUtil.createSSLSocket(JdbcThinSSLUtil.java:88)
... 18 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
... 22 more
[08:54:52][org.apache.ignite.jdbc.thin.JdbcThinConnectionSSLTest.testDefaultContext] java.sql.SQLException: Failed to SSL connect to server [url=jdbc:ignite:thin://127.0.0.1:10800]
[08:54:52]
[org.apache.ignite.jdbc.thin.JdbcThinConnectionSSLTest.testDefaultContext] java.sql.SQLException: Failed to SSL connect to server [url=jdbc:ignite:thin://127.0.0.1:10800]
at org.apache.ignite.jdbc.thin.JdbcThinConnectionSSLTest.testDefaultContext(JdbcThinConnectionSSLTest.java:187)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at org.apache.ignite.jdbc.thin.JdbcThinConnectionSSLTest.testDefaultContext(JdbcThinConnectionSSLTest.java:187)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at org.apache.ignite.jdbc.thin.JdbcThinConnectionSSLTest.testDefaultContext(JdbcThinConnectionSSLTest.java:187)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)