hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1378802 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Date Thu, 30 Aug 2012 05:11:00 GMT
Author: stack
Date: Thu Aug 30 05:11:00 2012
New Revision: 1378802

URL: http://svn.apache.org/viewvc?rev=1378802&view=rev
Log:
HBASE-662 [shell] Cannot describe '.META.' or '-ROOT-' tables

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=1378802&r1=1378801&r2=1378802&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Thu Aug
30 05:11:00 2012
@@ -897,7 +897,9 @@ public class HBaseAdmin implements Abort
    * @throws IOException if a remote or network exception occurs
    */
   public boolean isTableEnabled(byte[] tableName) throws IOException {
-    HTableDescriptor.isLegalTableName(tableName);
+    if (!HTableDescriptor.isMetaTable(tableName)) {
+      HTableDescriptor.isLegalTableName(tableName);
+    }
     return connection.isTableEnabled(tableName);
   }
 
@@ -916,7 +918,9 @@ public class HBaseAdmin implements Abort
    * @throws IOException if a remote or network exception occurs
    */
   public boolean isTableDisabled(byte[] tableName) throws IOException {
-    HTableDescriptor.isLegalTableName(tableName);
+    if (!HTableDescriptor.isMetaTable(tableName)) {
+      HTableDescriptor.isLegalTableName(tableName);
+    }
     return connection.isTableDisabled(tableName);
   }
 



Mime
View raw message