YARN-7387: org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestIncreaseAllocationExpirer fails intermittently. Contributed by Jim Brennan (Jim_Brennan)

(cherry picked from commit b1e07d27cc)
This commit is contained in:
Eric E Payne 2020-01-08 19:26:01 +00:00
parent b20ce118da
commit 5e2be81fcb
1 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,7 @@ public class TestIncreaseAllocationExpirer {
Thread.sleep(10000);
// Verify container size is 1G
am1.allocate(null, null);
rm1.drainEvents();
Assert.assertEquals(
1 * GB, rm1.getResourceScheduler().getRMContainer(containerId2)
.getAllocatedResource().getMemorySize());
@ -433,6 +434,7 @@ public class TestIncreaseAllocationExpirer {
am1.allocate(null, null);
rm1.drainEvents();
Assert.assertEquals(
2 * GB, rm1.getResourceScheduler().getRMContainer(containerId2)
.getAllocatedResource().getMemorySize());