[
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: [email protected]
For additional commands, e-mail: [email protected]