You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/10/24 02:57:35 UTC

[hbase] branch branch-2.1 updated: HBASE-23193 ConnectionImplementation.isTableAvailable can not deal with meta table on branch-2.x

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

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


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

commit fcb856d820137e85de47f029ba98aadaae10a745
Author: Duo Zhang <zh...@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 776aea0..6c27ace 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
@@ -614,6 +614,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);