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

getNodesUtilJSON is broken

    XMLWordPrintableJSON

Details

    Description

      In getNodesUtilJSON() is only calculated for resources that are defined on a partition level. These might be the same resources as defined in the nodes or they might not be.

      When walking over the node the last node visited will ultimately set the resourceExists flag. If I have a set of 2 nodes one that has the resource GPU defined and one that has not the outcome of the call will be different for the order the nodes get visited.
      If the node with GPU is visited last the second loop will be entered with resourceExists true if it was checked first resourceExists will be false.

      That means the output of the call is unreliable, it also means that any web UI parts that display the details cannot be relied on.

      Attachments

        Issue Links

          Activity

            People

              tingyao TingYao Huang
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: