hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1587762 - /hbase/branches/0.94/bin/region_mover.rb
Date Wed, 16 Apr 2014 00:14:49 GMT
Author: tedyu
Date: Wed Apr 16 00:14:48 2014
New Revision: 1587762

URL: http://svn.apache.org/r1587762
Log:
HBASE-10991 Port HBASE-10639 'Unload script displays wrong counts (off by one) when unloading
regions' to 0.94 (Srikanth Srungarapu)


Modified:
    hbase/branches/0.94/bin/region_mover.rb

Modified: hbase/branches/0.94/bin/region_mover.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/bin/region_mover.rb?rev=1587762&r1=1587761&r2=1587762&view=diff
==============================================================================
--- hbase/branches/0.94/bin/region_mover.rb (original)
+++ hbase/branches/0.94/bin/region_mover.rb Wed Apr 16 00:14:48 2014
@@ -350,7 +350,7 @@ def unloadRegions(options, hostname)
       # Get a random server to move the region to.
       server = servers[rand(servers.length)]
       $LOG.info("Moving region " + r.getRegionNameAsString() + " (" + 
-        count.to_s + " of " + rs.length.to_s + ") from server=" + 
+        (count + 1).to_s + " of " + rs.length.to_s + ") from server=" +
         servername + " to server=" + server);
       count = count + 1
       # Assert we can scan region in its current location
@@ -410,8 +410,8 @@ def loadRegions(options, hostname)
         " of " + regions.length.to_s + ") already on target server=" + servername) 
       next
     end
-    $LOG.info("Moving region " + r.getRegionNameAsString() + " (" + 
-      count.to_s + " of " + regions.length.to_s + ") from server=" + 
+    $LOG.info("Moving region " + r.getRegionNameAsString() + " (" +
+      (count + 1).to_s + " of " + regions.length.to_s + ") from server=" +
       currentServer.to_s + " to server=" + servername.to_s);
     move(admin, r, servername, currentServer)
   end



Mime
View raw message