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

This commit is contained in:
Karthik Kambatla 2017-02-27 22:10:57 -08:00
parent 258342e76c
commit f187d63816

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,