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

Do not expose innards of QueueMetrics object into FSLeafQueue#computeMaxAMResource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • Reviewed

    Description

      This is a follow-up for YARN-9323, covering required changes as discussed with templedf 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.003.patch
          6 kB
          Szilard Nemeth
        2. YARN-9360.003.patch
          6 kB
          Szilard Nemeth
        3. YARN-9360.002.patch
          6 kB
          Szilard Nemeth
        4. YARN-9360.001.patch
          6 kB
          Szilard Nemeth

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: