[
https://issues.apache.org/jira/browse/HADOOP-9678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696214#comment-13696214
]
Ivan Mitic commented on HADOOP-9678:
------------------------------------
The issue is in the test, it's a race condition between threads starting up:
{code}
final Server server = RPC.getServer(new TestImpl(), ADDRESS,
0, 5, true, conf);
server.start(); <--- starts the reader threads asynchronously
{code}
and test asserting that at least one thread started:
{code}
int threadsRunning = countThreads("Server$Listener$Reader");
assertTrue(threadsRunning > 0);
{code}
Will attach the patch shortly.
> TestRPC#testStopsAllThreads intermittently fails on Windows
> -----------------------------------------------------------
>
> Key: HADOOP-9678
> URL: https://issues.apache.org/jira/browse/HADOOP-9678
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 3.0.0, 1-win, 2.1.0-beta, 1.3.0
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
>
> Exception:
> {noformat}
> junit.framework.AssertionFailedError: null
> at org.apache.hadoop.ipc.TestRPC.testStopsAllThreads(TestRPC.java:440)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira