You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Ting Yao,Huang (Jira)" <ji...@apache.org> on 2021/03/25 10:12:00 UTC

[jira] [Resolved] (YUNIKORN-600) Placeholder manager needs to initialize the orphan pods map

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

Ting Yao,Huang resolved YUNIKORN-600.
-------------------------------------
    Fix Version/s: 0.11
       Resolution: Fixed

> 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
>            Assignee: Wilfred Spiegelenburg
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.11
>
>
> 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