brandboat commented on code in PR #763:
URL: https://github.com/apache/yunikorn-core/pull/763#discussion_r1439051816
##########
pkg/common/configs/configvalidator.go:
##########
@@ -706,7 +728,7 @@ func checkQueuesStructure(partition *PartitionConfig) error
{
if rootQueue.Resources.Guaranteed != nil || rootQueue.Resources.Max !=
nil {
return fmt.Errorf("root queue must not have resource limits
set")
}
- return checkQueues(&rootQueue, 1)
+ return nil
Review Comment:
Yes, we need the `checkLimits` inside `checkQueues` to check root queue
limits (after partition limits is applied to root queue), so here extracted the
method out of `checkQueuesStructure`
##########
pkg/common/configs/configvalidator.go:
##########
@@ -706,7 +728,7 @@ func checkQueuesStructure(partition *PartitionConfig) error
{
if rootQueue.Resources.Guaranteed != nil || rootQueue.Resources.Max !=
nil {
return fmt.Errorf("root queue must not have resource limits
set")
}
- return checkQueues(&rootQueue, 1)
+ return nil
Review Comment:
Yes, we need the `checkLimits` inside `checkQueues` to check root queue
limits (after partition limits is applied to root queue), so I extracted the
method out of `checkQueuesStructure`
--
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]