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:
Sean Busbey 2019-09-17 22:47:17 -05:00
parent cb62f73406
commit ab076b0731
1 changed files with 6 additions and 0 deletions

View File

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