hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1022760 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
Date Thu, 14 Oct 2010 23:10:09 GMT
Author: stack
Date: Thu Oct 14 23:10:09 2010
New Revision: 1022760

URL: http://svn.apache.org/viewvc?rev=1022760&view=rev
Log:
HBASE-3113 Don't reassign regions if cluster is being shutdown

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java?rev=1022760&r1=1022759&r2=1022760&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java Thu Oct
14 23:10:09 2010
@@ -594,6 +594,11 @@ public class AssignmentManager extends Z
         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);



Mime
View raw message