This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new eab65b6  HBASE-23193 ConnectionImplementation.isTableAvailable can not 
deal with meta table on branch-2.x
eab65b6 is described below

commit eab65b6bede738103145e8ab05d858ea2d28b4f5
Author: Duo Zhang <zhang...@apache.org>
AuthorDate: Sun Oct 20 20:21:00 2019 +0800

    HBASE-23193 ConnectionImplementation.isTableAvailable can not deal with 
meta table on branch-2.x
---
 .../java/org/apache/hadoop/hbase/client/ConnectionImplementation.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
index af8429e..eaea9c2 100644
--- 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
+++ 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
@@ -639,6 +639,10 @@ class ConnectionImplementation implements 
ClusterConnection, Closeable {
         LOG.debug("Table {} not enabled", tableName);
         return false;
       }
+      if (TableName.isMetaTableName(tableName)) {
+        // meta table is always available
+        return true;
+      }
       List<Pair<RegionInfo, ServerName>> locations =
         MetaTableAccessor.getTableRegionsAndLocations(this, tableName, true);
 

Reply via email to