You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Chaoran Yu (Jira)" <ji...@apache.org> on 2021/03/25 01:00:12 UTC
[jira] [Created] (YUNIKORN-600) Placeholder manager needs to
initialize the orphan pods map
Chaoran Yu created YUNIKORN-600:
-----------------------------------
Summary: Placeholder manager needs to initialize the orphan pods map
Key: YUNIKORN-600
URL: https://issues.apache.org/jira/browse/YUNIKORN-600
Project: Apache YuniKorn
Issue Type: Bug
Components: shim - kubernetes
Reporter: Chaoran Yu
https://github.com/apache/incubator-yunikorn-k8shim/blob/8f15278328400d46c64f476b936a764150f250b3/pkg/cache/placeholder_manager.go#L51-L54.
During the placeholder manager creation process, the orphanPod field (btw, a better name is orphanPods because there could be more than one of them) wasn’t initialized. The consequence is that during placeholder cleanup, this line https://github.com/apache/incubator-yunikorn-k8shim/blob/8f15278328400d46c64f476b936a764150f250b3/pkg/cache/placeholder_manager.go#L101 will fail with:
panic: assignment to entry in nil map
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org