From 7992c0b42ceb10fd3ca6c4ced4f59b8e8998e046 Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Tue, 9 Aug 2016 16:50:57 -0700 Subject: [PATCH] YARN-5343. TestContinuousScheduling#testSortedNodes fails intermittently. (Yufei Gu via kasha) --- .../scheduler/fair/TestContinuousScheduling.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/TestContinuousScheduling.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/TestContinuousScheduling.java index f7b5f3bdbb5..6188246dd31 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/TestContinuousScheduling.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/TestContinuousScheduling.java @@ -167,8 +167,8 @@ public class TestContinuousScheduling extends FairSchedulerTestBase { Assert.assertEquals(2, nodes.size()); } - private void triggerSchedulingAttempt() { - mockClock.tickMsec( + private void triggerSchedulingAttempt() throws InterruptedException { + Thread.sleep( 2 * scheduler.getConf().getContinuousSchedulingSleepMs()); } }