TestFairScheduler.testContinuousScheduling fails Intermittently. Contributed by Zhihai Xu.

This commit is contained in:
Tsuyoshi Ozawa 2015-04-06 20:13:21 +09:00
parent 96d72118f5
commit 53959e69f7
2 changed files with 5 additions and 5 deletions

View File

@ -145,6 +145,9 @@ Release 2.8.0 - UNRELEASED
YARN-3435. AM container to be allocated Appattempt AM container shown as null.
(Bibin A Chundatt via xgong)
YARN-2666. TestFairScheduler.testContinuousScheduling fails Intermittently.
(Zhihai Xu via ozawa)
Release 2.7.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -3922,12 +3922,9 @@ public void testContinuousScheduling() throws Exception {
createResourceRequest(1024, 1, ResourceRequest.ANY, 2, 1, true);
ask.clear();
ask.add(request);
scheduler.stop();
scheduler.allocate(appAttemptId, ask, new ArrayList<ContainerId>(), null, null);
// Wait until app gets resources
while (app.getCurrentConsumption()
.equals(Resources.createResource(1024, 1))) { }
scheduler.continuousSchedulingAttempt();
Assert.assertEquals(2048, app.getCurrentConsumption().getMemory());
Assert.assertEquals(2, app.getCurrentConsumption().getVirtualCores());