[ 
https://issues.apache.org/jira/browse/YUNIKORN-541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Weiwei Yang resolved YUNIKORN-541.
----------------------------------
    Fix Version/s: 0.11
         Assignee: Tao Yang
       Resolution: Fixed

> 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
>            Assignee: Tao Yang
>            Priority: Minor
>              Labels: log, pull-request-available
>             Fix For: 0.11
>
>
> 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.20.1#820001)

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

Reply via email to