You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Weiwei Yang (Jira)" <ji...@apache.org> on 2022/01/07 01:08:00 UTC

[jira] [Resolved] (YUNIKORN-541) Unexpected WARN log in node.go#refreshAvailableResource

     [ 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: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org