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

Qi Zhu updated YUNIKORN-2855:
-----------------------------
    Description: 
We support setting maxResource/ guaranteed resource to nil, but the metrics 
update is wrong because we don't update it from previous value update to 
zero/nil, for example:

https://github.com/apache/yunikorn-core/blob/7c51e82f09720b014159e0ba2f48d5e600a1f96c/pkg/scheduler/objects/queue.go#L415

https://github.com/apache/yunikorn-core/blob/7c51e82f09720b014159e0ba2f48d5e600a1f96c/pkg/scheduler/objects/queue.go#L441

  was:We will not update the nil resource to resource metrics, we need to fix 
it.


> Rethink the call for update metrics with nil resource
> -----------------------------------------------------
>
>                 Key: YUNIKORN-2855
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2855
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - scheduler
>            Reporter: Qi Zhu
>            Assignee: Qi Zhu
>            Priority: Major
>              Labels: pull-request-available
>
> We support setting maxResource/ guaranteed resource to nil, but the metrics 
> update is wrong because we don't update it from previous value update to 
> zero/nil, for example:
> https://github.com/apache/yunikorn-core/blob/7c51e82f09720b014159e0ba2f48d5e600a1f96c/pkg/scheduler/objects/queue.go#L415
> https://github.com/apache/yunikorn-core/blob/7c51e82f09720b014159e0ba2f48d5e600a1f96c/pkg/scheduler/objects/queue.go#L441



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to