YARN-6231. FairSchedulerTestBase helper methods should call scheduler.update to avoid flakiness. (kasha)
This commit is contained in:
parent
258342e76c
commit
f187d63816
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user