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

Xiao Chen commented on HADOOP-10406:
------------------------------------

Hi [~szetszwo],
Thank you for creating this JIRA and adding the detailed failure information!

I have recently seen similar error as well:
* Stacktrace
{noformat}
java.lang.AssertionError: expected:<28> but was:<22>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:743)
        at org.junit.Assert.assertEquals(Assert.java:118)
        at org.junit.Assert.assertEquals(Assert.java:555)
        at org.junit.Assert.assertEquals(Assert.java:542)
        at org.apache.hadoop.ipc.TestIPC.checkBlocking(TestIPC.java:752)
        at 
org.apache.hadoop.ipc.TestIPC.testIpcWithReaderQueuing(TestIPC.java:661)
{noformat}

* Standard Output
{noformat}
......
2015-10-12 14:02:26,581 INFO  ipc.CallQueueManager 
(CallQueueManager.java:<init>(53)) - Using callQueue class 
java.util.concurrent.LinkedBlockingQueue
2015-10-12 14:02:26,581 INFO  ipc.Server (Server.java:run(605)) - Starting 
Socket Reader #1 for port 51555
2015-10-12 14:02:26,581 INFO  ipc.Server (Server.java:run(605)) - Starting 
Socket Reader #2 for port 51555
2015-10-12 14:02:26,582 INFO  ipc.Server (Server.java:run(605)) - Starting 
Socket Reader #3 for port 51555
2015-10-12 14:02:26,582 INFO  ipc.Server (Server.java:run(605)) - Starting 
Socket Reader #4 for port 51555
2015-10-12 14:02:26,584 INFO  ipc.Server (Server.java:run(827)) - IPC Server 
Responder: starting
2015-10-12 14:02:26,585 INFO  ipc.Server (Server.java:run(674)) - IPC Server 
listener on 51555: starting
2015-10-12 14:02:26,599 INFO  ipc.TestIPC (TestIPC.java:checkBlocking(736)) - 
ipc layer should be blocked
2015-10-12 14:02:26,617 INFO  ipc.TestIPC (TestIPC.java:checkBlocking(747)) - 
(max clients) need:28 connections have:22
{noformat}

And it also appears to be the line {{assertEquals(maxAccept, 
server.getNumOpenConnections());}} is causing this.
I will propose a fix shortly.

> TestIPC.testIpcWithReaderQueuing may fail
> -----------------------------------------
>
>                 Key: HADOOP-10406
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10406
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc
>            Reporter: Tsz Wo Nicholas Sze
>
> The test may fail with AssertionError.  The value 
> server.getNumOpenConnections() could be larger than maxAccept; see comments 
> for more details.



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

Reply via email to