Chia-Ping Tsai created YUNIKORN-770:
---------------------------------------

             Summary: Avoid unexpected DEBUG log in scheduler_cache.go#removePod
                 Key: YUNIKORN-770
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-770
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: shim - kubernetes
            Reporter: Chia-Ping Tsai


{code:go}
        n, ok := cache.nodesMap[pod.Spec.NodeName]
        if !ok {
                return fmt.Errorf("node %v is not found", pod.Spec.NodeName)
        }
        if err := n.RemovePod(pod); err != nil {
                return err
        }
{code}

It can causes DEBUG log("node  is not found") if node name is an empty string. 
For example: the pod status is updated (according to outstanding requests) 
before it is assumed to be run on a node.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to