[ https://issues.apache.org/jira/browse/YARN-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13853620#comment-13853620 ]
Liyin Liang commented on YARN-1522: ----------------------------------- When the case failed, the log file contains the following line: {code} 2013-12-19 11:37:42,492 INFO [main] resourcemanager.TestApplicationCleanup (TestApplicationCleanup.java:testAppCleanup(109)) - Waiting to get cleanup events.. cleanedConts: 0 cleanedApps: 1 {code} So before the while loop, apps.size() equals to one. During the while loop, after another heartbeat, apps.size() will be zero. Then after the while loop, {code} Assert.assertEquals(1, apps.size()); {code} fails. > TestApplicationCleanup.testAppCleanup occasionally fails > -------------------------------------------------------- > > Key: YARN-1522 > URL: https://issues.apache.org/jira/browse/YARN-1522 > Project: Hadoop YARN > Issue Type: Bug > Affects Versions: 2.2.0 > Reporter: Liyin Liang > > TestApplicationCleanup is occasionally failing with the error: > {code} > ------------------------------------------------------------------------------- > Test set: org.apache.hadoop.yarn.server.resourcemanager.TestApplicationCleanup > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.215 sec <<< > FAILURE! - in > org.apache.hadoop.yarn.server.resourcemanager.TestApplicationCleanup > testAppCleanup(org.apache.hadoop.yarn.server.resourcemanager.TestApplicationCleanup) > Time elapsed: 5.555 sec <<< FAILURE! > junit.framework.AssertionFailedError: expected:<1> but was:<0> > at > org.apache.hadoop.yarn.server.resourcemanager.TestApplicationCleanup.testAppCleanup(TestApplicationCleanup.java:119) > {code} -- This message was sent by Atlassian JIRA (v6.1.4#6159)