[ https://issues.apache.org/jira/browse/YARN-11133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shilun Fan updated YARN-11133: ------------------------------ Hadoop Flags: Reviewed Target Version/s: 3.3.5, 3.4.0 > YarnClient gets the wrong EffectiveMinCapacity value > ---------------------------------------------------- > > Key: YARN-11133 > URL: https://issues.apache.org/jira/browse/YARN-11133 > Project: Hadoop YARN > Issue Type: Bug > Components: api > Affects Versions: 3.2.3, 3.3.2 > Reporter: Zilong Zhu > Assignee: Zilong Zhu > Priority: Major > Labels: pull-request-available > Fix For: 3.4.0, 3.2.4, 3.3.5 > > Time Spent: 2h > Remaining Estimate: 0h > > It calls the QueueConfigurations#getEffectiveMinCapacity to get the wrong > value when I use the YarnClient. I found some bugs with > QueueConfigurationsPBImpl#mergeLocalToBuilder. > {code:java} > 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)); > } > } {code} > configuredMinResource was incorrectly assigned to effMinResource. This causes > the real effMinResource to be overwritten and configuredMinResource is null. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org