hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: It is a bug in function balanceCluster
Date Fri, 04 Mar 2011 18:09:03 GMT
Committed to TRUNK (HBASE-3605).  Thanks for pointing out the error.
St.Ack

On Fri, Mar 4, 2011 at 1:11 AM, Gaojinchao <gaojinchao@huawei.com> wrote:
> In balanceCluster function , It should be "leastloaded=" + serversByLoad.firstKey ().getLoad().getNumberOfRegions())"
>
>
> if(serversByLoad.lastKey().getLoad().getNumberOfRegions() <= max &&
>       serversByLoad.firstKey().getLoad().getNumberOfRegions() >= min) {
>      // 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