HBASE-662 [shell] Cannot describe '.META.' or '-ROOT-' tables
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1378800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8f2cbc38d
commit
8e7185b507
|
@ -904,7 +904,9 @@ public class HBaseAdmin implements Abortable, Closeable {
|
|||
* @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);
|
||||
}
|
||||
|
||||
|
@ -923,7 +925,9 @@ public class HBaseAdmin implements Abortable, Closeable {
|
|||
* @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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue