Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9360

Do not expose innards of QueueMetrics object into FSLeafQueue#computeMaxAMResource

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This is a follow-up for YARN-9323, covering required changes as discussed with Daniel Templeton earlier.
      After YARN-9323, org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSLeafQueue#computeMaxAMResource gets the QueueMetricsForCustomResources object from scheduler.getRootQueueMetrics().
      Instead, we should use a "fill-in" method in QueueMetrics that receives a Resource and fills in custom resource values if they are non-zero.

        Attachments

        1. YARN-9360.001.patch
          6 kB
          Szilard Nemeth
        2. YARN-9360.002.patch
          6 kB
          Szilard Nemeth
        3. YARN-9360.003.patch
          6 kB
          Szilard Nemeth
        4. YARN-9360.003.patch
          6 kB
          Szilard Nemeth

          Issue Links

            Activity

              People

              • Assignee:
                pbacsko Peter Bacsko
                Reporter:
                snemeth Szilard Nemeth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: