[ https://issues.apache.org/jira/browse/HADOOP-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973275#comment-13973275 ]
Daryn Sharp commented on HADOOP-10518: -------------------------------------- With security disabled, the server immediately rejects connections that do not request SASL via the connection header. There's an async race with the insecure client that is blindly sending the connection context. I think the problem occurs if the delay between sending the connection header and the connection context is greater than the time it takes for the server to respond and close the connection. By sleeping after sending the response, it helped ensure the socket stayed open long enough for the client to send the connection context. > TestSaslRPC fails on Windows > ---------------------------- > > Key: HADOOP-10518 > URL: https://issues.apache.org/jira/browse/HADOOP-10518 > Project: Hadoop Common > Issue Type: Bug > Components: ipc > Affects Versions: 2.4.0 > Environment: Windows + Oracle Java 7. > Reporter: Arpit Agarwal > > {{TestSaslRPC}} fails with exceptions such as the following: > {code} > Tests run: 85, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 36.765 sec > <<< FAILURE! - in org.apache.hadoop.ipc.TestSaslRPC > testTokenOnlyServer[0](org.apache.hadoop.ipc.TestSaslRPC) Time elapsed: > 0.092 sec <<< FAILURE! > java.lang.AssertionError: > expected:<.*RemoteException.*AccessControlException.*: SIMPLE authentication > is not enabled.*> but was:<java.io.IOException: Failed on local exception: > java.io.IOException: An established connection was aborted by the software in > your host machine; Host Details : local host is: "WIN-Q5VLNTLIBJ0/10.0.2.15"; > destination host is: "WIN-Q5VLNTLIBJ0":49623; > > at org.junit.Assert.fail(Assert.java:93) > at org.junit.Assert.failNotEquals(Assert.java:647) > at org.junit.Assert.assertEquals(Assert.java:128) > at org.junit.Assert.assertEquals(Assert.java:147) > at > org.apache.hadoop.ipc.TestSaslRPC.assertAuthEquals(TestSaslRPC.java:978) > at > org.apache.hadoop.ipc.TestSaslRPC.testTokenOnlyServer(TestSaslRPC.java:782) > {code} > The exact location/number of failures varies by run. -- This message was sent by Atlassian JIRA (v6.2#6252)