YARN-8944. TestContainerAllocation.testUserLimitAllocationMultipleContainers failure after YARN-8896. Contributed by Wilfred Spiegelenburg.
(cherry picked from commit1d90a0dd23
) (cherry picked from commit70efe253f3
)
This commit is contained in:
parent
fd977a138a
commit
373e32480b
|
@ -67,6 +67,7 @@ import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration.MAXIMUM_ALLOCATION_MB;
|
import static org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration.MAXIMUM_ALLOCATION_MB;
|
||||||
|
import static org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration.MAX_ASSIGN_PER_HEARTBEAT;
|
||||||
|
|
||||||
public class TestContainerAllocation {
|
public class TestContainerAllocation {
|
||||||
|
|
||||||
|
@ -902,6 +903,9 @@ public class TestContainerAllocation {
|
||||||
CapacitySchedulerConfiguration newConf =
|
CapacitySchedulerConfiguration newConf =
|
||||||
(CapacitySchedulerConfiguration) TestUtils
|
(CapacitySchedulerConfiguration) TestUtils
|
||||||
.getConfigurationWithMultipleQueues(conf);
|
.getConfigurationWithMultipleQueues(conf);
|
||||||
|
// make sure an unlimited number of containers can be assigned,
|
||||||
|
// overriding the default of 100 after YARN-8896
|
||||||
|
newConf.set(MAX_ASSIGN_PER_HEARTBEAT, "-1");
|
||||||
newConf.setUserLimit("root.c", 50);
|
newConf.setUserLimit("root.c", 50);
|
||||||
MockRM rm1 = new MockRM(newConf);
|
MockRM rm1 = new MockRM(newConf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue