hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1102387 - /hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java
Date Thu, 12 May 2011 17:18:52 GMT
Author: jdcryans
Date: Thu May 12 17:18:51 2011
New Revision: 1102387

URL: http://svn.apache.org/viewvc?rev=1102387&view=rev
Log:
Fixing a log message in LoadBalancer, saw by Gaojinchao

Modified:
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java?rev=1102387&r1=1102386&r2=1102387&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/LoadBalancer.java Thu
May 12 17:18:51 2011
@@ -183,7 +183,7 @@ public class LoadBalancer {
       LOG.info("Skipping load balancing.  servers=" + numServers + " " +
           "regions=" + numRegions + " average=" + average + " " +
           "mostloaded=" + serversByLoad.lastKey().getLoad().getNumberOfRegions() +
-          " leastloaded=" + serversByLoad.lastKey().getLoad().getNumberOfRegions());
+          " leastloaded=" + serversByLoad.firstKey().getLoad().getNumberOfRegions());
       return null;
     }
     int min = numRegions / numServers;



Mime
View raw message