From 9029130ba059a8ee063469c91cd1bf64c5db4e88 Mon Sep 17 00:00:00 2001 From: Clay Baenziger Date: Mon, 27 May 2019 21:57:15 -0400 Subject: [PATCH] HBASE-22487 getMostLoadedRegions is unused Signed-off-by: Wellington Chevreuil Signed-off-by: Peter Somogyi --- .../hbase/regionserver/HRegionServer.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java index 36e09775df0..446a19bbf57 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -2845,27 +2845,6 @@ public class HRegionServer extends HasThread implements return this.compactSplitThread; } - /** - * Get the top N most loaded regions this server is serving so we can tell the - * master which regions it can reallocate if we're overloaded. TODO: actually - * calculate which regions are most loaded. (Right now, we're just grabbing - * the first N regions being served regardless of load.) - */ - protected RegionInfo[] getMostLoadedRegions() { - ArrayList regions = new ArrayList<>(); - for (Region r : onlineRegions.values()) { - if (!r.isAvailable()) { - continue; - } - if (regions.size() < numRegionsToReport) { - regions.add(r.getRegionInfo()); - } else { - break; - } - } - return regions.toArray(new RegionInfo[regions.size()]); - } - @Override public Leases getLeases() { return leases;