hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13802 Procedure V2: Master fails to come up due to rollback of create namespace table (Stephen Jiang)
Date Fri, 29 May 2015 09:37:23 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 325614220 -> 5646071c7


HBASE-13802 Procedure V2: Master fails to come up due to rollback of create namespace table
(Stephen Jiang)


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

Branch: refs/heads/master
Commit: 5646071c737318abde49696bb79fe203681dc27a
Parents: 3256142
Author: tedyu <yuzhihong@gmail.com>
Authored: Fri May 29 02:37:22 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Fri May 29 02:37:22 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/master/procedure/CreateTableProcedure.java      | 3 +++
 .../hadoop/hbase/master/procedure/DeleteTableProcedure.java      | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5646071c/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java
index f7e2b84..4840752 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.java
@@ -265,6 +265,9 @@ public class CreateTableProcedure
 
   @Override
   protected boolean acquireLock(final MasterProcedureEnv env) {
+    if (!env.isInitialized() && !getTableName().isSystemTable() ) {
+      return false;
+    }
     return env.getProcedureQueue().tryAcquireTableExclusiveLock(getTableName(), "create table");
   }
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/5646071c/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java
index 6772f0c..c5be27e 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/DeleteTableProcedure.java
@@ -405,6 +405,8 @@ public class DeleteTableProcedure
 
   protected static void deleteTableStates(final MasterProcedureEnv env, final TableName tableName)
       throws IOException {
-    ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName);
+    if (!tableName.isSystemTable()) {
+      ProcedureSyncWait.getMasterQuotaManager(env).removeTableFromNamespaceQuota(tableName);
+    }
   }
 }
\ No newline at end of file


Mime
View raw message