tomicooler commented on a change in pull request #3938:
URL: https://github.com/apache/hadoop/pull/3938#discussion_r796593980
##########
File path:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/AbstractCSQueue.java
##########
@@ -417,6 +420,23 @@ protected void setDynamicQueueProperties() {
.getConfiguredNodeLabelsForAllQueues()
.setLabelsByQueue(getQueuePath(), new HashSet<>(parentNodeLabels));
}
+
+ AutoCreatedQueueTemplate aqc = new AutoCreatedQueueTemplate(
+ queueContext.getConfiguration(),
+ parent.getQueuePathObject());
+
+ if (this instanceof ParentQueue) {
+ acls.putAll(getACLsForFlexibleAutoCreatedParentQueue(aqc));
+ }
+
+ if (this instanceof AbstractLeafQueue) {
+ if (parent instanceof AbstractManagedParentQueue) {
+ acls.putAll(getACLsForLegacyAutoCreatedLeafQueue(
+ queueContext.getConfiguration(), parent.getQueuePath()));
+ } else {
+ acls.putAll(getACLsForFlexibleAutoCreatedLeafQueue(aqc));
+ }
+ }
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]