Peter Bacsko created YUNIKORN-1891:
--------------------------------------

             Summary: Remove misleading error message from QueueTracker
                 Key: YUNIKORN-1891
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1891
             Project: Apache YuniKorn
          Issue Type: Sub-task
          Components: core - scheduler
            Reporter: Peter Bacsko


In the {{headroom()}} method, there is an error logging:
{noformat}
func (qt *QueueTracker) headroom(queuePath string) *resources.Resource {
        log.Log(log.SchedUGM).Debug("Calculating headroom",
                zap.String("queue path", queuePath))
        childQueuePath, immediateChildQueueName := getChildQueuePath(queuePath)
        if childQueuePath != "" {
                if qt.childQueueTrackers[immediateChildQueueName] != nil {
                        headroom := 
qt.childQueueTrackers[immediateChildQueueName].headroom(childQueuePath)
                        if headroom != nil {
                                return 
resources.ComponentWiseMinPermissive(headroom, qt.maxResources)
                        }
                } else {
                        log.Log(log.SchedUGM).Error("Child queueTracker tracker 
must be available in child queues map",
                                zap.String("child queueTracker name", 
immediateChildQueueName))
                        return nil
                }   <--- not an error
        }
{noformat}

As we discussed offline, this is not an error and should not be logged.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to