[ https://issues.apache.org/jira/browse/HADOOP-9036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497294#comment-13497294 ]
Ivan Mitic commented on HADOOP-9036: ------------------------------------ bq. I feel this kind of sleep based approach in tests causes them to be brittle and prone to intermittent failures. I will post a comment back when I get a chance to see if this issues can be solved without relying on sleep. Thanks Suresh for the comment. I went with a sleep because it was the simplest fix. I'll also take a look for a possible correct solution. > 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 > Attachments: HADOOP-9036.branch-1-win.testsinkqueue.patch > > > 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