From f187d63816584b783fbfe238475c8f37decdb6dc Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Mon, 27 Feb 2017 22:10:57 -0800 Subject: [PATCH] YARN-6231. FairSchedulerTestBase helper methods should call scheduler.update to avoid flakiness. (kasha) --- .../resourcemanager/scheduler/fair/FairSchedulerTestBase.java | 2 ++ 1 file changed, 2 insertions(+) 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 2214c670baf..af4e1dd32a0 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 @@ public class FairSchedulerTestBase { scheduler.allocate(id, ask, new ArrayList(), null, null, NULL_UPDATE_REQUESTS); + scheduler.update(); return id; } @@ -240,6 +241,7 @@ public class FairSchedulerTestBase { ask.add(request); scheduler.allocate(attId, ask, new ArrayList(), null, null, NULL_UPDATE_REQUESTS); + scheduler.update(); } protected void createApplicationWithAMResource(ApplicationAttemptId attId,