pbacsko commented on code in PR #935:
URL: https://github.com/apache/yunikorn-core/pull/935#discussion_r1709990903


##########
pkg/common/resources/resources.go:
##########
@@ -455,6 +455,74 @@ func (r *Resource) fitIn(smaller *Resource, skipUndef 
bool) bool {
        return true
 }
 
+// Denominator Resources can be either guaranteed Resources or fairmax 
Resources.
+// If the quanity is explicitly 0 or negative, we will check usage.  If usage 
>= 0, the share will be set to 1.0.  Otherwise, it will be set 0.0.
+func getShareFairForDenominator(resourceType string, allocated Quantity, 
denominatorResources *Resource) (float64, bool) {
+       if denominatorResources == nil {
+               return 0.0, false
+       }
+
+       denominator, ok := denominatorResources.Resources[resourceType]
+
+       switch {
+       case ok && denominator <= 0:
+               if denominator < 0 {

Review Comment:
   +1, we need no logging here, even if it's disabled



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