HBASE-10638 Improve error message when there is no region server available for move

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1573010 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-02-28 17:30:23 +00:00
parent 9f86836794
commit 397b272901
1 changed files with 4 additions and 0 deletions

View File

@ -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)