From 2a472e7bcf3e4bf85790a3669b6b97deb2475410 Mon Sep 17 00:00:00 2001 From: slfan1989 Date: Thu, 15 Jun 2023 20:27:23 +0800 Subject: [PATCH] YARN-7707. Fix CheckStyle. --- .../policygenerator/UniformWeightedLocalityGlobalPolicy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/policygenerator/UniformWeightedLocalityGlobalPolicy.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/policygenerator/UniformWeightedLocalityGlobalPolicy.java index 50cdc7e69d6dca..23e99062c7d593 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/policygenerator/UniformWeightedLocalityGlobalPolicy.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/policygenerator/UniformWeightedLocalityGlobalPolicy.java @@ -55,7 +55,8 @@ protected FederationPolicyManager updatePolicy(String queueName, if(currentManager instanceof WeightedLocalityPolicyManager){ LOG.info("Updating policy for queue {} to default weights.", queueName); WeightedLocalityPolicyManager wlpmanager = (WeightedLocalityPolicyManager) currentManager; - Map uniformWeights = GPGUtils.createUniformWeights(clusterInfo.keySet()); + Map uniformWeights = + GPGUtils.createUniformWeights(clusterInfo.keySet()); wlpmanager.getWeightedPolicyInfo().setAMRMPolicyWeights(uniformWeights); wlpmanager.getWeightedPolicyInfo().setRouterPolicyWeights(uniformWeights); } else {