From 354afbb9df898406ca8aa7086abb1831dab096d2 Mon Sep 17 00:00:00 2001 From: Varun Saxena Date: Tue, 16 Aug 2016 00:04:40 +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 0b52b860fd2..09c16d0fd0a 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 class TestCapacityScheduler { // check postconditions rm.waitForState(app.getApplicationId(), RMAppState.KILLED); + rm.waitForAppRemovedFromScheduler(app.getApplicationId()); appsInRoot = scheduler.getAppsInQueue("root"); assertTrue(appsInRoot.isEmpty());