this.regionsInTransition.notifyAll();
}
}
synchronized (this.regions) {
// Add check
HServerInfo hsi = this.regions.get(regionInfo);
if (hsi != null) LOG.warn("Overwriting " + regionInfo.getEncodedName() +
" on " + hsi);
HServerInfo hsiWithoutLoad = new HServerInfo(
serverInfo.getServerAddress(), serverInfo.getStartCode(),
serverInfo.getInfoPort(), serverInfo.getHostname());
if (isServerOnline(hsiWithoutLoad.getServerName())) {
this.regions.put(regionInfo, hsiWithoutLoad);
addToServers(hsiWithoutLoad, regionInfo);
this.regions.notifyAll();
} else {
LOG.info("The server is not in online servers, ServerName=" +
hsiWithoutLoad.getServerName() + ", region=" +
regionInfo.getEncodedName());
}
}
// Remove plan if one.
clearRegionPlan(regionInfo);