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

AbsoluteCapacity is wrongly set when call ParentQueue#setAbsoluteCapacity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      set a wrong AbsoluteCapacity when call  ParentQueue#setAbsoluteCapacity

      private void deriveCapacityFromAbsoluteConfigurations(String label,
      Resource clusterResource, ResourceCalculator rc, CSQueue childQueue) {

      // 3. Update absolute capacity as a float based on parent's minResource and
      // cluster resource.
      childQueue.getQueueCapacities().setAbsoluteCapacity(label,
      (float) childQueue.getQueueCapacities().getCapacity()
      / getQueueCapacities().getAbsoluteCapacity(label));

       

      should be childQueue.getQueueCapacities().setAbsoluteCapacity(label,
      (float) childQueue.getQueueCapacities().getCapacity(label)
      / getQueueCapacities().getAbsoluteCapacity(label));

      Attachments

        Issue Links

          Activity

            People

              jutia Juanjuan Tian
              jutia Juanjuan Tian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: