You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2014/02/28 18:29:43 UTC
svn commit: r1573008 - /hbase/branches/0.98/bin/region_mover.rb
Author: tedyu
Date: Fri Feb 28 17:29:42 2014
New Revision: 1573008
URL: http://svn.apache.org/r1573008
Log:
HBASE-10638 Improve error message when there is no region server available for move
Modified:
hbase/branches/0.98/bin/region_mover.rb
Modified: hbase/branches/0.98/bin/region_mover.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/bin/region_mover.rb?rev=1573008&r1=1573007&r2=1573008&view=diff
==============================================================================
--- hbase/branches/0.98/bin/region_mover.rb (original)
+++ hbase/branches/0.98/bin/region_mover.rb Fri Feb 28 17:29:42 2014
@@ -340,6 +340,10 @@ def unloadRegions(options, hostname)
# Remove the servers in our exclude list from list of servers.
servers = stripExcludes(servers, options[:excludesFile])
puts "Valid region move targets: ", servers
+ if servers.length == 0
+ puts "No regions were moved - there was no server available"
+ exit 4
+ end
movedRegions = java.util.ArrayList.new()
while true
rs = getRegions(config, servername)