Hean-Chhinling commented on code in PR #8641:
URL: https://github.com/apache/hadoop/pull/8641#discussion_r3730235913
##########
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:
And FYI, this is the warn logs when you try to set partition capacity for
the queue whereas the label is not defined on the queue.
```
3:41:53.594 PM | WARN | RMWebServices | CapacityScheduler configuration
validation failed:java.io.IOException: Failed to re-init queues : Queue:
root.Sibling must have accessible-node-labels and its capacity together
```
In the UI, it will throw 400 Bad request from the /validate endpoint.
<img width="1155" height="968" alt="Screenshot 2026-08-06 at 17 43 58"
src="https://github.com/user-attachments/assets/16deea1a-4fb9-47c4-8751-ead601eb7fbe"
/>
Note: I tested on a cluster without the UI changes to verify the backend
changes.
--
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]