Skip to content

Commit eab65b6

Browse files
committed
HBASE-23193 ConnectionImplementation.isTableAvailable can not deal with meta table on branch-2.x
1 parent df4b342 commit eab65b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,10 @@ public boolean isTableAvailable(final TableName tableName, @Nullable final byte[
639639
LOG.debug("Table {} not enabled", tableName);
640640
return false;
641641
}
642+
if (TableName.isMetaTableName(tableName)) {
643+
// meta table is always available
644+
return true;
645+
}
642646
List<Pair<RegionInfo, ServerName>> locations =
643647
MetaTableAccessor.getTableRegionsAndLocations(this, tableName, true);
644648

0 commit comments

Comments
 (0)