Skip to content

Commit

Permalink
YARN-10646. Fix TestCapacitySchedulerWeightMode.getCSConfWithLabelsPa…
Browse files Browse the repository at this point in the history
…rentUsePctChildUseWeight test based on the description in comment.
  • Loading branch information
bteke committed Aug 26, 2021
1 parent ad54f51 commit 30e198a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,23 +228,23 @@ public static Configuration getCSConfWithLabelsParentUsePctChildUseWeight(

// Define 2nd-level queues
conf.setQueues(A, new String[] { "a1" });
conf.setCapacityByLabel(A1, RMNodeLabelsManager.NO_LABEL, 100);
conf.setLabeledQueueWeight(A1, RMNodeLabelsManager.NO_LABEL, 100);
conf.setMaximumCapacity(A1, 100);
conf.setAccessibleNodeLabels(A1, toSet("x", "y"));
conf.setDefaultNodeLabelExpression(A1, "x");
conf.setCapacityByLabel(A1, "x", 100);
conf.setCapacityByLabel(A1, "y", 100);
conf.setLabeledQueueWeight(A1, "x", 100);
conf.setLabeledQueueWeight(A1, "y", 100);

conf.setQueues(B, new String[] { "b1", "b2" });
conf.setCapacityByLabel(B1, RMNodeLabelsManager.NO_LABEL, 50);
conf.setLabeledQueueWeight(B1, RMNodeLabelsManager.NO_LABEL, 50);
conf.setMaximumCapacity(B1, 50);
conf.setAccessibleNodeLabels(B1, RMNodeLabelsManager.EMPTY_STRING_SET);

conf.setCapacityByLabel(B2, RMNodeLabelsManager.NO_LABEL, 50);
conf.setLabeledQueueWeight(B2, RMNodeLabelsManager.NO_LABEL, 50);
conf.setMaximumCapacity(B2, 50);
conf.setAccessibleNodeLabels(B2, toSet("y", "z"));
conf.setCapacityByLabel(B2, "y", 100);
conf.setCapacityByLabel(B2, "z", 100);
conf.setLabeledQueueWeight(B2, "y", 100);
conf.setLabeledQueueWeight(B2, "z", 100);

return conf;
}
Expand Down

0 comments on commit 30e198a

Please sign in to comment.