commit 57a408c682a823b0c69c0a4e12bc32635bf6697a Author: Nicolas Spiegelberg Date: 5 weeks ago HBASE-4801 alter_status shell prints sensible message at completion Summary: The alter_status command used to print 0/0 once an alter operation had completed and its progress was no longer available. Now it instad indicates that all regions were updated. Test Plan: Tested with alter shell command on a dev cluster. Reviewers: kannan Reviewed By: kannan diff --git src/main/ruby/hbase/admin.rb src/main/ruby/hbase/admin.rb index 70eb149..33cd208 100644 --- src/main/ruby/hbase/admin.rb +++ src/main/ruby/hbase/admin.rb @@ -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."