hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1202915 - in /hbase/branches/0.92: CHANGES.txt src/main/ruby/hbase/admin.rb
Date Wed, 16 Nov 2011 22:46:42 GMT
Author: stack
Date: Wed Nov 16 22:46:41 2011
New Revision: 1202915

URL: http://svn.apache.org/viewvc?rev=1202915&view=rev
Log:
HBASE-4801 alter_status shell prints sensible message at completion

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/main/ruby/hbase/admin.rb

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1202915&r1=1202914&r2=1202915&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Wed Nov 16 22:46:41 2011
@@ -429,6 +429,7 @@ Release 0.92.0 - Unreleased
    HBASE-4792  SplitRegionHandler doesn't care if it deletes the znode or not,
                leaves the parent region stuck offline
    HBASE-4793  HBase shell still using deprecated methods removed in HBASE-4436
+   HBASE-4801  alter_status shell prints sensible message at completion
 
   TESTS
    HBASE-4492  TestRollingRestart fails intermittently

Modified: hbase/branches/0.92/src/main/ruby/hbase/admin.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/ruby/hbase/admin.rb?rev=1202915&r1=1202914&r2=1202915&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/ruby/hbase/admin.rb (original)
+++ hbase/branches/0.92/src/main/ruby/hbase/admin.rb Wed Nov 16 22:46:41 2011
@@ -293,7 +293,11 @@ module Hbase
       status = Pair.new()
       begin
         status = @admin.getAlterStatus(table_name.to_java_bytes)
-        puts "#{status.getSecond() - status.getFirst()}/#{status.getSecond()} regions updated."
+        if status.getSecond() != 0
+          puts "#{status.getSecond() - status.getFirst()}/#{status.getSecond()} regions updated."
+        else
+          puts "All regions updated."
+        end
 	      sleep 1
       end while status != nil && status.getFirst() != 0
       puts "Done."



Mime
View raw message