File tree Expand file tree Collapse file tree
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2585,27 +2585,6 @@ public FlushRequester getFlushRequester() {
25852585 return this .cacheFlusher ;
25862586 }
25872587
2588- /**
2589- * Get the top N most loaded regions this server is serving so we can tell the
2590- * master which regions it can reallocate if we're overloaded. TODO: actually
2591- * calculate which regions are most loaded. (Right now, we're just grabbing
2592- * the first N regions being served regardless of load.)
2593- */
2594- protected HRegionInfo [] getMostLoadedRegions () {
2595- ArrayList <HRegionInfo > regions = new ArrayList <HRegionInfo >();
2596- for (Region r : onlineRegions .values ()) {
2597- if (!r .isAvailable ()) {
2598- continue ;
2599- }
2600- if (regions .size () < numRegionsToReport ) {
2601- regions .add (r .getRegionInfo ());
2602- } else {
2603- break ;
2604- }
2605- }
2606- return regions .toArray (new HRegionInfo [regions .size ()]);
2607- }
2608-
26092588 @ Override
26102589 public Leases getLeases () {
26112590 return leases ;
You can’t perform that action at this time.
0 commit comments