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 2020/09/11 07:11:00 UTC
[jira] [Updated] (YUNIKORN-410) Pod state change may cause
incorrect update on SchedulerNode#occupied
[ https://issues.apache.org/jira/browse/YUNIKORN-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated YUNIKORN-410:
------------------------------------
Labels: pull-request-available (was: )
> Pod state change may cause incorrect update on SchedulerNode#occupied
> ---------------------------------------------------------------------
>
> Key: YUNIKORN-410
> URL: https://issues.apache.org/jira/browse/YUNIKORN-410
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: shim - kubernetes
> Reporter: Tao Yang
> Priority: Major
> Labels: pull-request-available
>
> Recently we found pod state change may cause incorrect update on SchedulerNode#occupied. For example, if pod state changed from Running to Pending then back to Running, after that SchedulerNode#occupied turned to incorrect since it had added resource of the same pod twice.
> The referenced code is in nodeResourceCoordinator#updatePod, SchedulerNode#occupied will always be updated when pod state is changing to Running, even if the pod has already been added to the cache of node. A simple solution is to confirm that the new running pod has not been included in the cache of node at first.
--
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