You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Zilong Zhu (Jira)" <ji...@apache.org> on 2022/05/07 15:06:00 UTC
[jira] [Created] (YARN-11133) YarnClient gets the wrong EffectiveMinCapacity value
Zilong Zhu created YARN-11133:
---------------------------------
Summary: 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.3.2, 3.2.3
Reporter: Zilong Zhu
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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org