[ https://issues.apache.org/jira/browse/YARN-5521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bibin A Chundatt updated YARN-5521: ----------------------------------- Attachment: Failure.txt Was able to reproduce the same after multiple runs. {noformat} 2016-08-15 19:08:40,755 INFO [main] resourcemanager.MockRM (MockRM.java:waitForState(194)) - App State is : KILLED 2016-08-15 19:08:40,755 INFO [SchedulerEventDispatcher:Event Processor] scheduler.AppSchedulingInfo (AppSchedulingInfo.java:clearRequests(136)) - Application application_1471268320166_0001 requests cleared 2016-08-15 19:08:40,756 DEBUG [main] service.AbstractService (AbstractService.java:enterState(452)) - Service: ResourceManager entered state STOPPED 2016-08-15 19:08:40,755 DEBUG [AsyncDispatcher event handler] resourcemanager.RMAppManager (RMAppManager.java:handle(494)) - RMAppManager processing event for application_1471268320166_0001 of type APP_COMPLETED 2016-08-15 19:08:40,757 DEBUG [main] service.CompositeService (CompositeService.java:serviceStop(129)) - ResourceManager: stopping services, size=3 2016-08-15 19:08:40,756 INFO [SchedulerEventDispatcher:Event Processor] capacity.LeafQueue (LeafQueue.java:removeApplicationAttempt(789)) - Application removed - appId: application_1471268320166_0001 user: user_0 queue: a1 #user-pending-applications: 0 #user-active-applications: 0 #queue-pending-applications: 0 #queue-active-applications: 0 {noformat} The queue metrics is getting updated after the app state is set to KILLED. So during below check {code} appsInRoot = scheduler.getAppsInQueue("root"); assertTrue(appsInRoot.isEmpty()); {code} Application in queue is still 1 . > TestCapacityScheduler#testKillAllAppsInQueue fails randomly > ----------------------------------------------------------- > > Key: YARN-5521 > URL: https://issues.apache.org/jira/browse/YARN-5521 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Varun Saxena > Attachments: Failure.txt > > > {noformat} > Running > org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler > Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 35.922 sec > <<< FAILURE! - in > org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler > testKillAllAppsInQueue(org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler) > Time elapsed: 0.146 sec <<< FAILURE! > java.lang.AssertionError: null > at org.junit.Assert.fail(Assert.java:86) > at org.junit.Assert.assertTrue(Assert.java:41) > at org.junit.Assert.assertTrue(Assert.java:52) > at > org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler.testKillAllAppsInQueue(TestCapacityScheduler.java:2188) > Results : > Failed tests: > TestCapacityScheduler.testKillAllAppsInQueue:2188 null > Tests run: 49, Failures: 1, Errors: 0, Skipped: 0 > {noformat} -- 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