chia7712 commented on code in PR #763:
URL: https://github.com/apache/yunikorn-core/pull/763#discussion_r1438512086


##########
pkg/common/configs/configvalidator.go:
##########
@@ -573,6 +573,19 @@ func checkLimit(limit Limit, existedUserName 
map[string]bool, existedGroupName m
        return nil
 }
 
+func checkLimitsStructure(rootQueue *QueueConfig, partitionLimits []Limit) 
error {
+       if len(partitionLimits) > 0 && len(rootQueue.Limits) > 0 {
+               return fmt.Errorf("partition limits and root queue limits both 
exist")
+       }
+
+       // if root queue limits not defined, apply partition limits
+       if len(partitionLimits) > 0 && len(rootQueue.Limits) == 0 {

Review Comment:
   if `rootQueue` is NOT root, we don't need this check, right?



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

Reply via email to