K0K0V0K commented on code in PR #8641:
URL: https://github.com/apache/hadoop/pull/8641#discussion_r3734780500


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacitySchedulerQueueManager.java:
##########
@@ -201,6 +201,7 @@ public void 
reinitializeQueues(CapacitySchedulerConfiguration newConf)
       // Ensure queue hierarchy in the new XML file is proper.
       CapacitySchedulerConfigValidator
               .validateQueueHierarchy(queues, newQueues, newConf);
+      CapacitySchedulerConfigValidator.validateQueueAccessibleLabels(newConf);

Review Comment:
   What i am trying to say that `reinitializeQueues` will not run when RM 
starts up (AFAIK). So in theory if someone edits manually an invalid 
capacity-scheduler.xml and use that during start up, the validation will not 
run. I think if you add this validation to `CapacityScheduler.validateConf` the 
validation will run when RM starts up.



-- 
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]

Reply via email to