hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9036) TestSinkQueue.testConcurrentConsumers fails
Date Wed, 14 Nov 2012 01:36:13 GMT

    [ 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

Mime
View raw message