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

Unexpected WARN log in node.go#refreshAvailableResource

    XMLWordPrintableJSON

    Details

      Description

      We have found lots of unexpected WARN log:  

      WARN    objects/node.go:169 Node update triggered over allocated node ...
      

      For this problem, I think below if-condition in node.go#refreshAvailableResource is opposite:

      	// check if any quantity is negative: a nil resource is all 0's
      	if resources.StrictlyGreaterThanOrEquals(sn.availableResource, nil) {
      		log.Logger().Warn("Node update triggered over allocated node",
      			zap.String("available", sn.availableResource.String()),
      			zap.String("total", sn.totalResource.String()),
      			zap.String("occupied", sn.occupiedResource.String()),
      			zap.String("allocated", sn.allocatedResource.String()))
      	}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Tao Yang Tao Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: