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

Arpit Agarwal commented on HADOOP-10518:
----------------------------------------

The exception data written by the Server is lost and the client (test code) 
receives a generic connection aborted error.

My guess is the Server is triggering a JVM bug when it writes the exception 
data and then closes the socket. Instead of the data being flushed to the peer 
the TCP connection is closed abortively. To check this hypothesis I added a 
small sleep (20ms) after writing the exception data to the SocketChannel and 
before closing the socket. This makes the error go away.

No good ideas on how to fix it yet.

> 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
>            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)

Reply via email to