Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-770

Remove unnecessary DEBUG log while removing a pod from the cache

    XMLWordPrintableJSON

Details

    Description

      	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
      	}
      

      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.

      Attachments

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: