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;