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
1 changed files with 2 additions and 0 deletions

View File

@ -190,6 +190,7 @@ public class FairSchedulerTestBase {
scheduler.allocate(id, ask, new ArrayList<ContainerId>(),
null, null, NULL_UPDATE_REQUESTS);
scheduler.update();
return id;
}
@ -240,6 +241,7 @@ public class FairSchedulerTestBase {
ask.add(request);
scheduler.allocate(attId, ask, new ArrayList<ContainerId>(),
null, null, NULL_UPDATE_REQUESTS);
scheduler.update();
}
protected void createApplicationWithAMResource(ApplicationAttemptId attId,