You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/07 09:13:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated YUNIKORN-541:
------------------------------------
    Labels: log pull-request-available  (was: log)

> 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
>            Priority: Major
>              Labels: log, pull-request-available
>
> 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: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org