Skip to content

Commit

Permalink
HBASE-23040 give friendly message about unknown server when running u…
Browse files Browse the repository at this point in the history
…nload for RegionMover.

closes #635

Signed-off-by: stack <stack@apache.org>
  • Loading branch information
busbey committed Sep 18, 2019
1 parent cb62f73 commit ab076b0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ public boolean unload() throws InterruptedException, ExecutionException, Timeout
.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);
Expand Down

0 comments on commit ab076b0

Please sign in to comment.