[ https://issues.apache.org/jira/browse/HADOOP-7292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034460#comment-13034460 ]
Luke Lu commented on HADOOP-7292: --------------------------------- I was planning to use the latch for other tests as well. The latch will not be reused because junit creates a new instance of the test object for each test method: http://martinfowler.com/bliki/JunitNewInstance.html > Metrics 2 TestSinkQueue is racy > ------------------------------- > > Key: HADOOP-7292 > URL: https://issues.apache.org/jira/browse/HADOOP-7292 > Project: Hadoop Common > Issue Type: Bug > Components: metrics > Affects Versions: 0.23.0 > Reporter: Luke Lu > Assignee: Luke Lu > Priority: Minor > Fix For: 0.23.0 > > Attachments: hadoop-7292-test-race-v1.patch > > > The TestSinkQueue is racy (Thread.yield is not enough to guarantee other > intended thread getting run), though it's the first time (from HADOOP-7289) I > saw it manifested here. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira