YARN-5343. TestContinuousScheduling#testSortedNodes fails intermittently. (Yufei Gu via kasha)
(cherry picked from commit 7992c0b42c
)
This commit is contained in:
parent
2df34ab6e2
commit
447ba47640
|
@ -167,8 +167,8 @@ public class TestContinuousScheduling extends FairSchedulerTestBase {
|
||||||
Assert.assertEquals(2, nodes.size());
|
Assert.assertEquals(2, nodes.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void triggerSchedulingAttempt() {
|
private void triggerSchedulingAttempt() throws InterruptedException {
|
||||||
mockClock.tickMsec(
|
Thread.sleep(
|
||||||
2 * scheduler.getConf().getContinuousSchedulingSleepMs());
|
2 * scheduler.getConf().getContinuousSchedulingSleepMs());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue