[
https://issues.apache.org/jira/browse/HADOOP-14320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972922#comment-15972922
]
Eric Badger commented on HADOOP-14320:
--------------------------------------
*TestIPC.java:810*
{{verify(spy, timeout(100).times(i + 1)).put(Mockito.<Call>anyObject());}}
The 100ms timeout is too aggressive. If the threads don't start immediately or
run more slowly than this main-line code (aka doesn't finish its call in
100ms), the timeout will cause the test to fail. This can be recreated by
adding a 150ms timeout to the thread's run method.
> TestIPC.testIpcWithReaderQueuing fails intermittently
> -----------------------------------------------------
>
> Key: HADOOP-14320
> URL: https://issues.apache.org/jira/browse/HADOOP-14320
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Eric Badger
> Assignee: Eric Badger
>
> {noformat}
> org.mockito.exceptions.verification.TooLittleActualInvocations:
> callQueueManager.put(<any>);
> Wanted 2 times:
> -> at org.apache.hadoop.ipc.TestIPC.checkBlocking(TestIPC.java:810)
> But was 1 time:
> -> at org.apache.hadoop.ipc.Server.queueCall(Server.java:2466)
> at org.apache.hadoop.ipc.TestIPC.checkBlocking(TestIPC.java:810)
> at
> org.apache.hadoop.ipc.TestIPC.testIpcWithReaderQueuing(TestIPC.java:738)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]