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

Do not expose innards of QueueMetrics object into FSLeafQueue#computeMaxAMResource

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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.003.patch
          6 kB
          Szilard Nemeth
        2. YARN-9360.002.patch
          6 kB
          Szilard Nemeth
        3. YARN-9360.001.patch
          6 kB
          Szilard Nemeth

          Issue Links

            Activity

              People

              • Assignee:
                snemeth Szilard Nemeth
                Reporter:
                snemeth Szilard Nemeth
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: