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-13029 Table state should be deleted from META as a last operation in DeleteTableHandler (Andrey Stepachev)
Date Thu, 12 Feb 2015 22:03:04 GMT
Repository: hbase
Updated Branches:
  refs/heads/master fc2e849cd -> e0160d693


HBASE-13029 Table state should be deleted from META as a last operation in DeleteTableHandler
(Andrey Stepachev)


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

Branch: refs/heads/master
Commit: e0160d69379401a7381ddaa478b53c9833379fe2
Parents: fc2e849
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Feb 12 14:02:54 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Feb 12 14:02:54 2015 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/master/handler/DeleteTableHandler.java     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e0160d69/hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/DeleteTableHandler.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/DeleteTableHandler.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/DeleteTableHandler.java
index 092a17d..7fcda15 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/DeleteTableHandler.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/handler/DeleteTableHandler.java
@@ -128,12 +128,13 @@ public class DeleteTableHandler extends TableEventHandler {
     LOG.debug("Removing '" + tableName + "' from region states.");
     am.getRegionStates().tableDeleted(tableName);
 
-    // 5. If entry for this table states, remove it.
-    LOG.debug("Marking '" + tableName + "' as deleted.");
-    am.getTableStateManager().setDeletedTable(tableName);
 
-    // 6.Clean any remaining rows for this table.
+    // 5.Clean any remaining rows for this table.
     cleanAnyRemainingRows();
+
+    // 6. If entry for this table states, remove it.
+    LOG.debug("Marking '" + tableName + "' as deleted.");
+    am.getTableStateManager().setDeletedTable(tableName);
   }
 
   /**


Mime
View raw message