Skip to content

Commit cda2b08

Browse files
author
slfan1989
committed
YARN-11332. Fix CheckStyle.
1 parent 8435647 commit cda2b08

File tree

1 file changed

+4
-4
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm

1 file changed

+4
-4
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,14 +1961,14 @@ protected int getNumMinThreads(Configuration conf) {
19611961
// If the user configures YarnConfiguration.ROUTER_USER_CLIENT_THREADS_SIZE,
19621962
// we will still get the number of threads from this configuration.
19631963
if (StringUtils.isNotBlank(threadSize)) {
1964-
LOG.warn("{} is an deprecated property, " +
1964+
LOG.warn("{} is a deprecated property, " +
19651965
"please remove it, use {} to configure the minimum number of thread pool.",
19661966
YarnConfiguration.ROUTER_USER_CLIENT_THREADS_SIZE,
19671967
YarnConfiguration.ROUTER_USER_CLIENT_THREAD_POOL_MINIMUM_POOL_SIZE);
19681968
return Integer.parseInt(threadSize);
19691969
}
19701970

1971-
int numMinThreads = getConf().getInt(
1971+
int numMinThreads = conf.getInt(
19721972
YarnConfiguration.ROUTER_USER_CLIENT_THREAD_POOL_MINIMUM_POOL_SIZE,
19731973
YarnConfiguration.DEFAULT_ROUTER_USER_CLIENT_THREAD_POOL_MINIMUM_POOL_SIZE);
19741974
return numMinThreads;
@@ -1981,14 +1981,14 @@ protected int getNumMaxThreads(Configuration conf) {
19811981
// If the user configures YarnConfiguration.ROUTER_USER_CLIENT_THREADS_SIZE,
19821982
// we will still get the number of threads from this configuration.
19831983
if (StringUtils.isNotBlank(threadSize)) {
1984-
LOG.warn("{} is an deprecated property, " +
1984+
LOG.warn("{} is a deprecated property, " +
19851985
"please remove it, use {} to configure the maximum number of thread pool.",
19861986
YarnConfiguration.ROUTER_USER_CLIENT_THREADS_SIZE,
19871987
YarnConfiguration.ROUTER_USER_CLIENT_THREAD_POOL_MAXIMUM_POOL_SIZE);
19881988
return Integer.parseInt(threadSize);
19891989
}
19901990

1991-
int numMaxThreads = getConf().getInt(
1991+
int numMaxThreads = conf.getInt(
19921992
YarnConfiguration.ROUTER_USER_CLIENT_THREAD_POOL_MAXIMUM_POOL_SIZE,
19931993
YarnConfiguration.DEFAULT_ROUTER_USER_CLIENT_THREAD_POOL_MAXIMUM_POOL_SIZE);
19941994
return numMaxThreads;

0 commit comments

Comments
 (0)