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

Investigate whether legacy Auto Queue Creation in absolute mode works seamlessly when calling updateClusterResource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • yarn
    • None

    Description

      Due to this check in ParentQueue#getCapacityConfigurationTypeForQueues:

      if (queues.iterator().hasNext() &&
          !queues.iterator().next().getQueuePath().equals(
          CapacitySchedulerConfiguration.ROOT) &&
          (percentageIsSet ? 1 : 0) + (weightIsSet ? 1 : 0) + (absoluteMinResSet ?
              1 :
              0) > 1) {
        throw new IOException("Parent queue '" + getQueuePath()
            + "' have children queue used mixed of "
            + " weight mode, percentage and absolute mode, it is not allowed, please "
            + "double check, details:" + diagMsg.toString());
      } 

      I was unable to call updateClusterResource on a ManagedParentQueue, when its children are in absolute mode. updateClusterResource is called whenever a node is updated etc., therefore it could break any time.

      Attachments

        Activity

          People

            gandras Andras Gyori
            gandras Andras Gyori
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: