RegionState rit = services.getAssignmentManager().getRegionsInTransition().get(
e.getKey().getEncodedName());
AssignmentManager assignmentManager = this.services.getAssignmentManager();
if (processDeadRegion(e.getKey(), e.getValue(), assignmentManager,
this.server.getCatalogTracker())) {
ServerName addressFromAM = assignmentManager.getRegionServerOfRegion(e.getKey());
if (rit != null && !rit.isClosing() && !rit.isPendingClose() && !rit.isSplitting()
&& !ritsGoingToServer.contains(e.getKey())) {
// Skip regions that were in transition unless CLOSING or
// PENDING_CLOSE
LOG.info("Skip assigning region " + rit.toString());
} else if (addressFromAM != null && !addressFromAM.equals(this.serverName)) {
LOG.debug("Skip assigning region " + e.getKey().getRegionNameAsString()
+ " because it has been opened in " + addressFromAM.getServerName());
ritsGoingToServer.remove(e.getKey());
} else {
if (rit != null) {
// clean zk node
try {