Skip to content

Commit

Permalink
YARN-7707. Fix CheckStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Jun 15, 2023
1 parent 6a2e968 commit 2a472e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<SubClusterIdInfo, Float> uniformWeights = GPGUtils.createUniformWeights(clusterInfo.keySet());
Map<SubClusterIdInfo, Float> uniformWeights =
GPGUtils.createUniformWeights(clusterInfo.keySet());
wlpmanager.getWeightedPolicyInfo().setAMRMPolicyWeights(uniformWeights);
wlpmanager.getWeightedPolicyInfo().setRouterPolicyWeights(uniformWeights);
} else {
Expand Down

0 comments on commit 2a472e7

Please sign in to comment.