YARN-5564. Fix typo in RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE. Contributed by Ray Chiang
This commit is contained in:
parent
f4a21d3aba
commit
27c3b86252
|
@ -52,7 +52,7 @@ public class FairSchedulerConfiguration extends Configuration {
|
|||
* multiple of increment allocation. Only container sizes above this are
|
||||
* allowed to reserve a node */
|
||||
public static final String
|
||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE =
|
||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE =
|
||||
YarnConfiguration.YARN_PREFIX +
|
||||
"scheduler.reservation-threshold.increment-multiple";
|
||||
public static final float
|
||||
|
@ -190,7 +190,7 @@ public class FairSchedulerConfiguration extends Configuration {
|
|||
|
||||
public float getReservationThresholdIncrementMultiple() {
|
||||
return getFloat(
|
||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||
DEFAULT_RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE);
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ public class FairSchedulerTestBase {
|
|||
|
||||
conf.setFloat(
|
||||
FairSchedulerConfiguration
|
||||
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
||||
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||
TEST_RESERVATION_THRESHOLD);
|
||||
return conf;
|
||||
}
|
||||
|
@ -280,4 +280,4 @@ public class FairSchedulerTestBase {
|
|||
Assert.assertEquals(resource.getVirtualCores(),
|
||||
app.getCurrentConsumption().getVirtualCores());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1455,7 +1455,7 @@ public class TestFairScheduler extends FairSchedulerTestBase {
|
|||
// Set threshold to 2 * 1024 ==> 2048 MB & 2 * 1 ==> 2 vcores (test will
|
||||
// use vcores)
|
||||
conf.setFloat(FairSchedulerConfiguration.
|
||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||
2f);
|
||||
scheduler.init(conf);
|
||||
scheduler.start();
|
||||
|
|
|
@ -135,7 +135,7 @@ public class TestFairSchedulerPreemption extends FairSchedulerTestBase {
|
|||
conf.setFloat(FairSchedulerConfiguration.PREEMPTION_THRESHOLD, 0f);
|
||||
conf.setFloat(
|
||||
FairSchedulerConfiguration
|
||||
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
||||
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||
TEST_RESERVATION_THRESHOLD);
|
||||
|
||||
resourceManager = new MockRM(conf);
|
||||
|
|
Loading…
Reference in New Issue