Skip to content

Commit

Permalink
YARN-11582. fix the checkstyle issuse: local varible name
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojunxiang2023 committed Oct 6, 2023
1 parent d5f7e4f commit 8c24ef4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,8 @@ public void testDiagnosticWhenAMActivated() throws Exception {
* Queue a1 supports labels (x,y). Configure am-resource-limit as 0.2 (x)
* Queue c1 supports default label. Configure am-resource-limit as 0.2
*
* Queue A1 for label X can only support 2Gb AM resource.
* Queue C1 (empty label) can support 2Gb AM resource.
* Queue a1 for label X can only support 2Gb AM resource.
* Queue c1 (empty label) can support 2Gb AM resource.
*
* Verify at least one AM is launched, and AM resources should not go more
* than 2GB in each queue.
Expand All @@ -1048,12 +1048,12 @@ public void testDiagnosticWhenAMActivated() throws Exception {
CapacitySchedulerConfiguration config = (CapacitySchedulerConfiguration)
TestUtils.getConfigurationWithQueueLabels(conf);

// After getting queue conf, configure AM resource percent for Queue A1
// as 0.2 (Label X) and for Queue C1 as 0.2 (Empty Label)
final String A1 = CapacitySchedulerConfiguration.ROOT + ".a" + ".a1";
final String C1 = CapacitySchedulerConfiguration.ROOT + ".c" + ".c1";
config.setMaximumAMResourcePercentPerPartition(A1, "x", 0.2f);
config.setMaximumApplicationMasterResourcePerQueuePercent(C1, 0.2f);
// After getting queue conf, configure AM resource percent for Queue a1
// as 0.2 (Label X) and for Queue c1 as 0.2 (Empty Label)
final String a1 = CapacitySchedulerConfiguration.ROOT + ".a" + ".a1";
final String c1 = CapacitySchedulerConfiguration.ROOT + ".c" + ".c1";
config.setMaximumAMResourcePercentPerPartition(a1, "x", 0.2f);
config.setMaximumApplicationMasterResourcePerQueuePercent(c1, 0.2f);

// Now inject node label manager with this updated config
MockRM rm = new MockRM(config) {
Expand Down

0 comments on commit 8c24ef4

Please sign in to comment.