HBASE-23040 give friendly message about unknown server when running unload for RegionMover.
closes #635 Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
cb62f73406
commit
ab076b0731
|
@ -421,6 +421,12 @@ public class RegionMover extends AbstractHBaseTool implements Closeable {
|
|||
.keySet());
|
||||
// Remove the host Region server from target Region Servers list
|
||||
ServerName server = stripServer(regionServers, hostname, port);
|
||||
if (server == null) {
|
||||
LOG.info("Could not find server '{}:{}' in the set of region servers. giving up.",
|
||||
hostname, port);
|
||||
LOG.debug("List of region servers: {}", regionServers);
|
||||
return false;
|
||||
}
|
||||
// Remove RS present in the exclude file
|
||||
stripExcludes(regionServers);
|
||||
stripMaster(regionServers);
|
||||
|
|
Loading…
Reference in New Issue