Source:
<code>private void assignRegions(MasterProcedureEnv env, List<RegionInfo> regions) throws IOException { <START> LOG.info("=============assign " + regions); <END> AssignmentManager am = env.getMasterServices().getAssignmentManager(); for (RegionInfo region : regions) { RegionStateNode regionNode = am.getRegionStates().getOrCreateRegionStateNode(region); regionNode.lock(); try { if (!isMatchingRegionLocation(regionNode)) { if (!am.isRunning()) { throw new DoNotRetryIOException( "AssignmentManager has been stopped, can not process assignment any more"); } LOG.info("{} found whose regionLocation no longer matches {}, skipping assign...", this, regionNode, serverName); continue; } if (regionNode.getProcedure() != null) { LOG.info("{} found RIT {}; {}", this, regionNode.getProcedure(), regionNode); regionNode.getProcedure().serverCrashed(env, regionNode, getServerName()); continue; } if (env.getMasterServices().getTableStateManager() .isTableState(regionNode.getTable(), TableState.State.DISABLING)) { env.getAssignmentManager().regionClosedAbnormally(regionNode); LOG.info("{} found table disabling for region {}, set it state to ABNORMALLY_CLOSED.", this, regionNode); continue; } if (env.getMasterServices().getTableStateManager() .isTableState(regionNode.getTable(), TableState.State.DISABLED)) { LOG.warn("Found table disabled for region {}, procDetails: {}", regionNode, this); continue; } TransitRegionStateProcedure proc = TransitRegionStateProcedure.assign(env, region, true, null); regionNode.setProcedure(proc); addChildProcedure(proc); } finally { regionNode.unlock(); } } }</code><technical_language>Need this? enough spew in log assign</technical_language>

Target:
private void assignRegions(MasterProcedureEnv env, List<RegionInfo> regions) throws IOException { AssignmentManager am = env.getMasterServices().getAssignmentManager(); for (RegionInfo region : regions) { RegionStateNode regionNode = am.getRegionStates().getOrCreateRegionStateNode(region); regionNode.lock(); try { if (!isMatchingRegionLocation(regionNode)) { if (!am.isRunning()) { throw new DoNotRetryIOException( "AssignmentManager has been stopped, can not process assignment any more"); } LOG.info("{} found whose regionLocation no longer matches {}, skipping assign...", this, regionNode, serverName); continue; } if (regionNode.getProcedure() != null) { LOG.info("{} found RIT {}; {}", this, regionNode.getProcedure(), regionNode); regionNode.getProcedure().serverCrashed(env, regionNode, getServerName()); continue; } if (env.getMasterServices().getTableStateManager() .isTableState(regionNode.getTable(), TableState.State.DISABLING)) { env.getAssignmentManager().regionClosedAbnormally(regionNode); LOG.info("{} found table disabling for region {}, set it state to ABNORMALLY_CLOSED.", this, regionNode); continue; } if (env.getMasterServices().getTableStateManager() .isTableState(regionNode.getTable(), TableState.State.DISABLED)) { LOG.warn("Found table disabled for region {}, procDetails: {}", regionNode, this); continue; } TransitRegionStateProcedure proc = TransitRegionStateProcedure.assign(env, region, true, null); regionNode.setProcedure(proc); addChildProcedure(proc); } finally { regionNode.unlock(); } } }