[ https://issues.apache.org/jira/browse/YARN-11133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hemanth Boyina resolved YARN-11133. ----------------------------------- Fix Version/s: 3.4.0 Resolution: Fixed > 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 > > Time Spent: 1h 50m > 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.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-dev-h...@hadoop.apache.org