Skip to content

Commit 337dbe6

Browse files
author
huangzhaobo
committed
fix code checkstyle
1 parent 574a32a commit 337dbe6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int getFailedTimesSinceLastSuccessfulBalance() {
355355
this.sourceNodes = p.getSourceNodes();
356356
this.runDuringUpgrade = p.getRunDuringUpgrade();
357357
this.sortTopNodes = p.getSortTopNodes();
358-
this.limitOverUtilizedNum = p.getlimitOverUtilizedNum();
358+
this.limitOverUtilizedNum = p.getLimitOverUtilizedNum();
359359

360360
this.maxSizeToMove = getLongBytes(conf,
361361
DFSConfigKeys.DFS_BALANCER_MAX_SIZE_TO_MOVE_KEY,
@@ -472,8 +472,8 @@ private long init(List<DatanodeStorageReport> reports) {
472472
metrics.setNumOfUnderUtilizedNodes(underUtilized.size());
473473

474474
Preconditions.checkState(dispatcher.getStorageGroupMap().size() - excludedOverUtilizedNum
475-
== overUtilized.size() + underUtilized.size() + aboveAvgUtilized.size()
476-
+ belowAvgUtilized.size(),
475+
== overUtilized.size() + underUtilized.size() + aboveAvgUtilized.size()
476+
+ belowAvgUtilized.size(),
477477
"Mismatched number of storage groups");
478478

479479
// return number of bytes to be moved in order to make the cluster balanced

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/BalancerParameters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ boolean getSortTopNodes() {
113113
return this.sortTopNodes;
114114
}
115115

116-
int getlimitOverUtilizedNum() {
116+
int getLimitOverUtilizedNum() {
117117
return this.limitOverUtilizedNum;
118118
}
119119

0 commit comments

Comments
 (0)