You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ivan Mitic (JIRA)" <ji...@apache.org> on 2012/11/14 02:36:13 UTC
[jira] [Commented] (HADOOP-9036)
TestSinkQueue.testConcurrentConsumers fails
[ https://issues.apache.org/jira/browse/HADOOP-9036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496743#comment-13496743 ]
Ivan Mitic commented on HADOOP-9036:
------------------------------------
There is a race condition in TestSinkQueue#testConcurrentConsumers between a new thread created in newSleepingConsumerQueue and the first assert shouldThrowCME, hence the test fails intermittently. Each time shouldThrowCME runs before the new thread receives a consume callback the test will fail.
The easiest way to consistently repro the problem is to add a short Thread.sleep in the newSleepingConsumerQueue thread.
> TestSinkQueue.testConcurrentConsumers fails
> -------------------------------------------
>
> Key: HADOOP-9036
> URL: https://issues.apache.org/jira/browse/HADOOP-9036
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
>
> org.apache.hadoop.metrics2.impl.TestSinkQueue.testConcurrentConsumers
>
> Error Message
> should've thrown
> Stacktrace
> junit.framework.AssertionFailedError: should've thrown
> at org.apache.hadoop.metrics2.impl.TestSinkQueue.shouldThrowCME(TestSinkQueue.java:229)
> at org.apache.hadoop.metrics2.impl.TestSinkQueue.testConcurrentConsumers(TestSinkQueue.java:195)
> Standard Output
> 2012-10-03 16:51:31,694 INFO impl.TestSinkQueue (TestSinkQueue.java:consume(243)) - sleeping
--
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