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/fair/FairSchedulerTestBase.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairSchedulerTestBase.java index 2214c670ba..af4e1dd32a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairSchedulerTestBase.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FairSchedulerTestBase.java @@ -190,6 +190,7 @@ protected ApplicationAttemptId createSchedulingRequest( scheduler.allocate(id, ask, new ArrayList(), null, null, NULL_UPDATE_REQUESTS); + scheduler.update(); return id; } @@ -240,6 +241,7 @@ protected void createSchedulingRequestExistingApplication( ask.add(request); scheduler.allocate(attId, ask, new ArrayList(), null, null, NULL_UPDATE_REQUESTS); + scheduler.update(); } protected void createApplicationWithAMResource(ApplicationAttemptId attId,