HBASE-4801 alter_status shell prints sensible message at completion

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1202914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-11-16 22:46:14 +00:00
parent 99724ae460
commit e84b62cbb0
2 changed files with 6 additions and 1 deletions

View File

@ -433,6 +433,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-4450 test for number of blocks read: to serve as baseline for expected

View File

@ -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."