HBASE-23193 ConnectionImplementation.isTableAvailable can not deal with meta table on branch-2.x

This commit is contained in:
Duo Zhang 2019-10-20 20:21:00 +08:00
parent 75dad6cd14
commit f19b8096f1
1 changed files with 4 additions and 0 deletions

View File

@ -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);