From 24249115bff3162c4202387da5bdd8eba13e6961 Mon Sep 17 00:00:00 2001 From: Varun Saxena Date: Tue, 16 Aug 2016 00:03:16 +0530 Subject: [PATCH] YARN-5521. Fix random failure of TestCapacityScheduler#testKillAllAppsInQueue (sandflee via Varun Saxena) --- .../scheduler/capacity/TestCapacityScheduler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacityScheduler.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacityScheduler.java index 0b52b860fd..09c16d0fd0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacityScheduler.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacityScheduler.java @@ -2184,6 +2184,7 @@ public void testKillAllAppsInQueue() throws Exception { // check postconditions rm.waitForState(app.getApplicationId(), RMAppState.KILLED); + rm.waitForAppRemovedFromScheduler(app.getApplicationId()); appsInRoot = scheduler.getAppsInQueue("root"); assertTrue(appsInRoot.isEmpty());