hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject git commit: HBASE-12124 Closed region could stay closed if master stops at bad time
Date Wed, 01 Oct 2014 16:00:27 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 e78224bd6 -> 42d0b4c56


HBASE-12124 Closed region could stay closed if master stops at bad time


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/42d0b4c5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/42d0b4c5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/42d0b4c5

Branch: refs/heads/0.98
Commit: 42d0b4c5614499bf3641665c9cf81ee81cb909dd
Parents: e78224b
Author: Jimmy Xiang <jxiang@cloudera.com>
Authored: Tue Sep 30 15:51:20 2014 -0700
Committer: Jimmy Xiang <jxiang@cloudera.com>
Committed: Wed Oct 1 08:58:22 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/master/AssignmentManager.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/42d0b4c5/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
index 6ac2050..0f28f7d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
@@ -2944,6 +2944,9 @@ public class AssignmentManager extends ZooKeeperListener {
         State state = regionState.getState();
         LOG.info("Processing " + regionState);
         switch (state) {
+        case CLOSED:
+          invokeAssign(regionState.getRegion());
+          break;
         case PENDING_OPEN:
           retrySendRegionOpen(regionState);
           break;


Mime
View raw message