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:
parent
da3cc25adb
commit
bcaa2dea49
|
@ -594,6 +594,11 @@ public class AssignmentManager extends ZooKeeperListener {
|
||||||
region.getRegionNameAsString());
|
region.getRegionNameAsString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.serverManager.isClusterShutdown()) {
|
||||||
|
LOG.info("Cluster shutdown is set; skipping assign of " +
|
||||||
|
region.getRegionNameAsString());
|
||||||
|
return;
|
||||||
|
}
|
||||||
RegionState state = addToRegionsInTransition(region);
|
RegionState state = addToRegionsInTransition(region);
|
||||||
synchronized (state) {
|
synchronized (state) {
|
||||||
assign(state);
|
assign(state);
|
||||||
|
|
Loading…
Reference in New Issue