incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r731845 - /incubator/hama/trunk/src/java/org/apache/hama/HamaAdminImpl.java
Date Tue, 06 Jan 2009 06:35:47 GMT
Author: edwardyoon
Date: Mon Jan  5 22:35:47 2009
New Revision: 731845

URL: http://svn.apache.org/viewvc?rev=731845&view=rev
Log: (empty)

Modified:
    incubator/hama/trunk/src/java/org/apache/hama/HamaAdminImpl.java

Modified: incubator/hama/trunk/src/java/org/apache/hama/HamaAdminImpl.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/java/org/apache/hama/HamaAdminImpl.java?rev=731845&r1=731844&r2=731845&view=diff
==============================================================================
--- incubator/hama/trunk/src/java/org/apache/hama/HamaAdminImpl.java (original)
+++ incubator/hama/trunk/src/java/org/apache/hama/HamaAdminImpl.java Mon Jan  5 22:35:47 2009
@@ -24,6 +24,7 @@
 import org.apache.hadoop.hbase.HColumnDescriptor;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.MasterNotRunningException;
+import org.apache.hadoop.hbase.RegionException;
 import org.apache.hadoop.hbase.client.HBaseAdmin;
 import org.apache.hadoop.hbase.client.HTable;
 import org.apache.hadoop.hbase.io.BatchUpdate;
@@ -172,8 +173,12 @@
       
       if(getReference(tablename) <= 0) { // no reference, do gc!!
         if (admin.isTableEnabled(tablename)) {
-          admin.disableTable(tablename);
-          admin.deleteTable(tablename);
+          try {
+            admin.disableTable(tablename);
+            admin.deleteTable(tablename);
+          } catch (RegionException e) {
+            LOG.warn(e);
+          } 
         }
       }
     }



Mime
View raw message