Skip to content

Commit e3e84bb

Browse files
committed
Fix naming, some pedantry
1 parent 1b0d35a commit e3e84bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceMetrics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public long undesiredAllocationsExcludingShuttingDownNodes() {
6161
* @return a value in [0.0, 1.0]
6262
*/
6363
public double undesiredAllocationsRatio() {
64-
long totalAllocations = totalAllocations();
64+
final long totalAllocations = totalAllocations();
6565
if (totalAllocations == 0) {
6666
return 0;
6767
}
@@ -256,7 +256,7 @@ public long undesiredAllocations() {
256256
return lastReconciliationAllocationStats.undesiredAllocationsExcludingShuttingDownNodes();
257257
}
258258

259-
public AllocationStats allocationStatsByRole() {
259+
public AllocationStats allocationStats() {
260260
return lastReconciliationAllocationStats;
261261
}
262262

server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceShardsAllocator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ public DesiredBalanceStats getStats() {
438438
);
439439
}
440440

441-
public DesiredBalanceMetrics.AllocationStats getAllocationStatsByRole() {
442-
return desiredBalanceMetrics.allocationStatsByRole();
441+
public DesiredBalanceMetrics.AllocationStats getAllocationStats() {
442+
return desiredBalanceMetrics.allocationStats();
443443
}
444444

445445
private void onNoLongerMaster() {

0 commit comments

Comments
 (0)