[ https://issues.apache.org/jira/browse/YARN-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15659659#comment-15659659 ]
Ajith S commented on YARN-5857: ------------------------------- Guess this issue is result of test case relying on java.util.concurrent.ThreadPoolExecutor.getActiveCount() As the javadoc for this method (https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html#getActiveCount() ) says, it return the approximate number at the moment. I feel we can rewrite this testcase using countdown latches to make test case more robust, please suggest > TestLogAggregationService.testFixedSizeThreadPool fails intermittently on > trunk > ------------------------------------------------------------------------------- > > Key: YARN-5857 > URL: https://issues.apache.org/jira/browse/YARN-5857 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Varun Saxena > Assignee: Ajith S > Priority: Minor > > {noformat} > testFixedSizeThreadPool(org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService) > Time elapsed: 0.11 sec <<< FAILURE! > java.lang.AssertionError: expected:<3> but was:<2> > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotEquals(Assert.java:743) > at org.junit.Assert.assertEquals(Assert.java:118) > at org.junit.Assert.assertEquals(Assert.java:555) > at org.junit.Assert.assertEquals(Assert.java:542) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService.testFixedSizeThreadPool(TestLogAggregationService.java:1139) > {noformat} > Refer to https://builds.apache.org/job/PreCommit-YARN-Build/13829/testReport/ -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org