YARN-6231. FairSchedulerTestBase helper methods should call scheduler.update to avoid flakiness. (kasha)

(cherry picked from commit f187d63816)
This commit is contained in:
Karthik Kambatla 2017-02-27 22:10:57 -08:00
parent 76bf47cb91
commit 58eefc71c7
1 changed files with 2 additions and 0 deletions

View File

@ -190,6 +190,7 @@ protected ApplicationAttemptId createSchedulingRequest(
scheduler.allocate(id, ask, new ArrayList<ContainerId>(),
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<ContainerId>(),
null, null, NULL_UPDATE_REQUESTS);
scheduler.update();
}
protected void createApplicationWithAMResource(ApplicationAttemptId attId,