hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-13076 Table can be forcibly enabled in AssignmentManager during table disabling (Andrey Stepachev)
Date Thu, 05 Mar 2015 19:47:13 GMT
Repository: hbase
Updated Branches:
  refs/heads/master c15e684bf -> 4570451f7


HBASE-13076 Table can be forcibly enabled in AssignmentManager during table disabling (Andrey
Stepachev)


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

Branch: refs/heads/master
Commit: 4570451f7cf2dba2b22664b470b73547e2496a88
Parents: c15e684
Author: stack <stack@apache.org>
Authored: Thu Mar 5 11:47:02 2015 -0800
Committer: stack <stack@apache.org>
Committed: Thu Mar 5 11:47:02 2015 -0800

----------------------------------------------------------------------
 .../apache/hadoop/hbase/master/AssignmentManager.java   | 12 ------------
 1 file changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4570451f/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 f861529..0ee71b0 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
@@ -1008,18 +1008,6 @@ public class AssignmentManager {
           regionStates.updateRegionState(region, State.FAILED_OPEN);
           return;
         }
-        // In case of assignment from EnableTableHandler table state is ENABLING. Any how
-        // EnableTableHandler will set ENABLED after assigning all the table regions. If
we
-        // try to set to ENABLED directly then client API may think table is enabled.
-        // When we have a case such as all the regions are added directly into hbase:meta
and we call
-        // assignRegion then we need to make the table ENABLED. Hence in such case the table
-        // will not be in ENABLING or ENABLED state.
-        TableName tableName = region.getTable();
-        if (!tableStateManager.isTableState(tableName,
-          TableState.State.ENABLED, TableState.State.ENABLING)) {
-          LOG.debug("Setting table " + tableName + " to ENABLED state.");
-          setEnabledTable(tableName);
-        }
         LOG.info("Assigning " + region.getRegionNameAsString() +
             " to " + plan.getDestination().toString());
         // Transition RegionState to PENDING_OPEN


Mime
View raw message