[ https://issues.apache.org/jira/browse/HADOOP-7292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034453#comment-13034453 ]
Todd Lipcon commented on HADOOP-7292: ------------------------------------- Hi Luke. I think the CountdownLatch should be a local variable in newSleepingConsumerQueue -- otherwise, the latch gets reused between test functions. > 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