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

YarnClient gets the wrong EffectiveMinCapacity value

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      It calls the QueueConfigurations#getEffectiveMinCapacity to get the wrong value when I use the YarnClient. I found some bugs with QueueConfigurationsPBImpl#mergeLocalToBuilder.

      private void mergeLocalToBuilder() {
        if (this.effMinResource != null) {
          builder
              .setEffectiveMinCapacity(convertToProtoFormat(this.effMinResource));
        }
        if (this.effMaxResource != null) {
          builder
              .setEffectiveMaxCapacity(convertToProtoFormat(this.effMaxResource));
        }
        if (this.configuredMinResource != null) {
          builder.setEffectiveMinCapacity(
              convertToProtoFormat(this.configuredMinResource));
        }
        if (this.configuredMaxResource != null) {
          builder.setEffectiveMaxCapacity(
              convertToProtoFormat(this.configuredMaxResource));
        }
      } 

      configuredMinResource was incorrectly assigned to effMinResource. This causes the real effMinResource to be overwritten and configuredMinResource is null. 

      Attachments

        Issue Links

          Activity

            People

              zilong zhu Zilong Zhu
              zilong zhu Zilong Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h