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:
parent
9f86836794
commit
397b272901
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue