hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bryanduxb...@apache.org
Subject svn commit: r629175 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/master/TableDelete.java
Date Tue, 19 Feb 2008 18:16:16 GMT
Author: bryanduxbury
Date: Tue Feb 19 10:16:00 2008
New Revision: 629175

URL: http://svn.apache.org/viewvc?rev=629175&view=rev
Log:
HBASE-8 [hbase] Delete table does not remove the table directory in the FS

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableDelete.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=629175&r1=629174&r2=629175&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Tue Feb 19 10:16:00 2008
@@ -21,7 +21,8 @@
    HBASE-434, HBASE-435 TestTableIndex and TestTableMapReduce failed in Hudson builds
    HBASE-446   Fully qualified hbase.rootdir doesn't work
    HBASE-438   XMLOutputter state should be initialized. (Edward Yoon via Stack)
-
+   HBASE-8     Delete table does not remove the table directory in the FS
+   
   IMPROVEMENTS
    HBASE-415   Rewrite leases to use DelayedBlockingQueue instead of polling
    HBASE-35    Make BatchUpdate public in the API

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableDelete.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableDelete.java?rev=629175&r1=629174&r2=629175&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableDelete.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableDelete.java Tue Feb 19
10:16:00 2008
@@ -22,6 +22,7 @@
 import java.io.IOException;
 import java.util.HashSet;
 
+import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.HRegion;
 import org.apache.hadoop.hbase.HRegionInfo;
 import org.apache.hadoop.hbase.HRegionInterface;
@@ -62,6 +63,9 @@
       }
     }
     super.postProcessMeta(m, server);
+    
+    // delete the table's folder from fs.
+    master.fs.delete(new Path(master.rootdir, tableName.toString()));
   }
 
   @Override



Mime
View raw message