hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaojinchao <gaojinc...@huawei.com>
Subject a little bug :)
Date Thu, 12 May 2011 11:00:55 GMT
Hbase version: 0.90.2

" leastloaded=" + serversByLoad.lastKey().getLoad().getNumberOfRegions());

Should be:

" leastloaded=" + serversByLoad. firstKey ().getLoad().getNumberOfRegions());



if(serversByLoad.lastKey().getLoad().getNumberOfRegions() <= ceiling &&
       serversByLoad.firstKey().getLoad().getNumberOfRegions() >= floor) {
      // Skipped because no server outside (min,max) range
      LOG.info("Skipping load balancing.  servers=" + numServers + " " +
          "regions=" + numRegions + " average=" + average + " " +
          "mostloaded=" + serversByLoad.lastKey().getLoad().getNumberOfRegions() +
          " leastloaded=" + serversByLoad.lastKey().getLoad().getNumberOfRegions());
      return null;
    }

Mime
View raw message