YARN-942. TestContainerSchedulerQueuing.testKillOnlyRequiredOpportunisticContainers fails sporadically Contributed by Ahmed Hussein (ahussein)

This commit is contained in:
Eric E Payne 2020-03-10 14:17:45 +00:00
parent 44afe1154d
commit ede05b19d1
1 changed files with 2 additions and 4 deletions

View File

@ -996,16 +996,14 @@ public class TestContainerSchedulerQueuing extends BaseContainerManagerTest {
allRequests = StartContainersRequest.newInstance(list);
containerManager.startContainers(allRequests);
BaseContainerManagerTest.waitForNMContainerState(containerManager,
createContainerId(0), ContainerState.DONE, 40);
Thread.sleep(5000);
// Get container statuses. Container 0 should be killed, container 1
// should be queued and container 2 should be running.
int killedContainers = 0;
List<ContainerId> statList = new ArrayList<ContainerId>();
for (int i = 0; i < 6; i++) {
statList.add(createContainerId(i));
BaseContainerManagerTest.waitForNMContainerState(containerManager,
statList.get(i), ContainerState.DONE, 40);
}
GetContainerStatusesRequest statRequest =
GetContainerStatusesRequest.newInstance(statList);