Skip to content

Commit

Permalink
fix code checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhaobo99 authored and huangzhaobo committed Oct 19, 2024
1 parent 574a32a commit 508cd62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ static int getFailedTimesSinceLastSuccessfulBalance() {
this.sourceNodes = p.getSourceNodes();
this.runDuringUpgrade = p.getRunDuringUpgrade();
this.sortTopNodes = p.getSortTopNodes();
this.limitOverUtilizedNum = p.getlimitOverUtilizedNum();
this.limitOverUtilizedNum = p.getLimitOverUtilizedNum();

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

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

// return number of bytes to be moved in order to make the cluster balanced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ boolean getSortTopNodes() {
return this.sortTopNodes;
}

int getlimitOverUtilizedNum() {
int getLimitOverUtilizedNum() {
return this.limitOverUtilizedNum;
}

Expand Down

0 comments on commit 508cd62

Please sign in to comment.