hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: a little bug :)
Date Thu, 12 May 2011 17:19:01 GMT
Fixed, thanks!

J-D

On Thu, May 12, 2011 at 4:00 AM, Gaojinchao <gaojinchao@huawei.com> wrote:
> 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