Tao Yang created YUNIKORN-541:
---------------------------------

             Summary: Unexpected WARN log in node.go#refreshAvailableResource
                 Key: YUNIKORN-541
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-541
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler
            Reporter: Tao Yang


We have found lots of unexpected WARN log:  
{noformat}
WARN    objects/node.go:169 Node update triggered over allocated node ...
{noformat}
For this problem, I think below if-condition in 
node.go#refreshAvailableResource is opposite:
{code:go}
        // check if any quantity is negative: a nil resource is all 0's
        if resources.StrictlyGreaterThanOrEquals(sn.availableResource, nil) {
                log.Logger().Warn("Node update triggered over allocated node",
                        zap.String("available", sn.availableResource.String()),
                        zap.String("total", sn.totalResource.String()),
                        zap.String("occupied", sn.occupiedResource.String()),
                        zap.String("allocated", sn.allocatedResource.String()))
        }
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to