this.master.regionManager.regionIsInTransition(info.getRegionName()) ||
this.master.serverManager.isDead(serverName)) {
return;
}
HServerInfo storedInfo = null;
if (serverName.length() != 0) {
storedInfo = this.master.serverManager.getServerInfo(serverName);
}
/*
* If the startcode is off -- either null or doesn't match the start code
* for the address -- then add it to the list of unassigned regions.
*/
if (storedInfo == null || storedInfo.getStartCode() != startCode) {
// The current assignment is invalid
if (LOG.isDebugEnabled()) {
LOG.debug("Current assignment of " + info.getRegionNameAsString() +
" is not valid; " +
(storedInfo == null ? " Server '" + serverName + "' unknown." :
" serverInfo: " + storedInfo + ", passed startCode: " +
startCode + ", storedInfo.startCode: " +
storedInfo.getStartCode()));
}
// Recover the region server's log if there is one.
// This is only done from here if we are restarting and there is stale
// data in the meta region. Once we are on-line, dead server log