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 6dc5ada993d..fc9712b3c1e 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 @@ -2917,27 +2917,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;