YARN-7387: org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestIncreaseAllocationExpirer fails intermittently. Contributed by Jim Brennan (Jim_Brennan)
This commit is contained in:
parent
6899be5a17
commit
b1e07d27cc
|
@ -227,6 +227,7 @@ public class TestIncreaseAllocationExpirer {
|
||||||
Thread.sleep(10000);
|
Thread.sleep(10000);
|
||||||
// Verify container size is 1G
|
// Verify container size is 1G
|
||||||
am1.allocate(null, null);
|
am1.allocate(null, null);
|
||||||
|
rm1.drainEvents();
|
||||||
Assert.assertEquals(
|
Assert.assertEquals(
|
||||||
1 * GB, rm1.getResourceScheduler().getRMContainer(containerId2)
|
1 * GB, rm1.getResourceScheduler().getRMContainer(containerId2)
|
||||||
.getAllocatedResource().getMemorySize());
|
.getAllocatedResource().getMemorySize());
|
||||||
|
@ -467,6 +468,7 @@ public class TestIncreaseAllocationExpirer {
|
||||||
|
|
||||||
am1.allocate(null, null);
|
am1.allocate(null, null);
|
||||||
|
|
||||||
|
rm1.drainEvents();
|
||||||
Assert.assertEquals(
|
Assert.assertEquals(
|
||||||
2 * GB, rm1.getResourceScheduler().getRMContainer(containerId2)
|
2 * GB, rm1.getResourceScheduler().getRMContainer(containerId2)
|
||||||
.getAllocatedResource().getMemorySize());
|
.getAllocatedResource().getMemorySize());
|
||||||
|
|
Loading…
Reference in New Issue