[ 
https://issues.apache.org/jira/browse/GEODE-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16897588#comment-16897588
 ] 

ASF subversion and git services commented on GEODE-6976:
--------------------------------------------------------

Commit 3680fc9db9ff9fb26a0777d3563a9b46ff30c2cd in geode's branch 
refs/heads/develop from Bruce Schuchardt
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=3680fc9 ]

GEODE-6976 org.apache.geode.internal.net.SSLSocketIntegrationTest > 
testSecuredSocketTransmissionShouldWorkUsingNIO FAILED

This test failed if the first read from the server socket happened to
read two messages instead of one.  This change lets the server thread
read the second message by leaving the decoded buffer's position
unchanged if there is more data to read.

This closes #3866


> CI Failure: org.apache.geode.internal.net.SSLSocketIntegrationTest > 
> testSecuredSocketTransmissionShouldWorkUsingNIO FAILED
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-6976
>                 URL: https://issues.apache.org/jira/browse/GEODE-6976
>             Project: Geode
>          Issue Type: Bug
>          Components: messaging
>    Affects Versions: 1.10.0
>            Reporter: Shelley Lynn Hughes-Godfrey
>            Assignee: Bruce Schuchardt
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> This failure occurred during CI:
> https://concourse.apachegeode-ci.info/teams/main/pipelines/apache-develop-main/jobs/IntegrationTestOpenJDK8/builds/883
> {noformat}
> org.apache.geode.internal.net.SSLSocketIntegrationTest > 
> testSecuredSocketTransmissionShouldWorkUsingNIO FAILED
>     java.lang.AssertionError: expected null, but 
> was:<org.junit.ComparisonFailure: expected:<"[Hello world]"> but was:<"[]">>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotNull(Assert.java:755)
>         at org.junit.Assert.assertNull(Assert.java:737)
>         at org.junit.Assert.assertNull(Assert.java:747)
>         at 
> org.apache.geode.internal.net.SSLSocketIntegrationTest.testSecuredSocketTransmissionShouldWorkUsingNIO(SSLSocketIntegrationTest.java:230)
> {noformat}
> Artifacts are located here:
> {noformat}
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=  Test Results URI 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> http://files.apachegeode-ci.info/builds/apache-develop-main/1.10.0-SNAPSHOT.0453/test-results/integrationTest/1563324048/
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Test report artifacts from this job are available at:
> http://files.apachegeode-ci.info/builds/apache-develop-main/1.10.0-SNAPSHOT.0453/test-artifacts/1563324048/integrationtestfiles-OpenJDK8-1.10.0-SNAPSHOT.0453.tgz
> {noformat}
> stdout for the test:
> {noformat}
> [info 2019/07/17 00:24:29.828 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> [info 2019/07/17 00:24:30.287 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> server thread accepted a connection
> [info 2019/07/17 00:24:30.480 GMT <awaitility[connect to server socket]> 
> tid=0x1d] Your SSL configuration disables hostname validation. 
> ssl-endpoint-identification-enabled should be set to true when SSL is 
> enabled. Please refer to the Apache GEODE SSL Documentation for SSL Property: 
> ssl‑endpoint‑identification‑enabled
> client connect attempt timed out - checking stack trace
> client connect attempt timed out in the appropriate method
> server thread is exiting
> [info 2019/07/17 00:24:30.995 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> [info 2019/07/17 00:24:31.023 GMT <Test worker> tid=0x19] Your SSL 
> configuration disables hostname validation. 
> ssl-endpoint-identification-enabled should be set to true when SSL is 
> enabled. Please refer to the Apache GEODE SSL Documentation for SSL Property: 
> ssl‑endpoint‑identification‑enabled
> [info 2019/07/17 00:24:31.330 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> [info 2019/07/17 00:24:32.363 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> client sending Hello World message to server
> client buffer position is 0 and limit is 13
> client wrapped buffer position is 0 and limit is 85
> client bytes written is 85
> client sending Hello World message to server
> client buffer position is 0 and limit is 13
> client wrapped buffer position is 0 and limit is 85
> client bytes written is 85
> client sending Hello World message to server
> server bytes read is 170: buffer position is 0 and limit is 170
> server unwrapped buffer position is 0 and limit is 26
> server read Hello World message from client
> server read Hello World message from client
> client buffer position is 0 and limit is 13
> client wrapped buffer position is 0 and limit is 85
> client bytes written is 85
> org.junit.ComparisonFailure: expected:<"[Hello world]"> but was:<"[]">
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>       at 
> org.apache.geode.internal.net.SSLSocketIntegrationTest.readMessageFromNIOSSLClient(SSLSocketIntegrationTest.java:316)
>       at 
> org.apache.geode.internal.net.SSLSocketIntegrationTest.lambda$startServerNIO$5(SSLSocketIntegrationTest.java:271)
>       at java.lang.Thread.run(Thread.java:748)
> [info 2019/07/17 00:24:35.230 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> [info 2019/07/17 00:24:36.367 GMT <handshakeWithPeerCanTimeout-server> 
> tid=0x26] TLS handshake is timing out
> java.net.SocketTimeoutException: handshake timed out
>       at 
> org.apache.geode.internal.net.NioSslEngine.handshake(NioSslEngine.java:133)
>       at 
> org.apache.geode.internal.net.SocketCreator.handshakeSSLSocketChannel(SocketCreator.java:955)
>       at 
> org.apache.geode.internal.net.SSLSocketIntegrationTest.lambda$startServerNIO$5(SSLSocketIntegrationTest.java:263)
>       at java.lang.Thread.run(Thread.java:748)
> [info 2019/07/17 00:24:36.385 GMT <Test worker> tid=0x19] <ExpectedException 
> action=add>javax.net.ssl.SSLException: Read timed out</ExpectedException>
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to