HBASE-3113 Don't reassign regions if cluster is being shutdown

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1022760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-10-14 23:10:09 +00:00
parent da3cc25adb
commit bcaa2dea49
1 changed files with 5 additions and 0 deletions

View File

@ -594,6 +594,11 @@ public class AssignmentManager extends ZooKeeperListener {
region.getRegionNameAsString());
return;
}
if (this.serverManager.isClusterShutdown()) {
LOG.info("Cluster shutdown is set; skipping assign of " +
region.getRegionNameAsString());
return;
}
RegionState state = addToRegionsInTransition(region);
synchronized (state) {
assign(state);