HBASE-23193 ConnectionImplementation.isTableAvailable can not deal with meta table on branch-2.x
This commit is contained in:
parent
75dad6cd14
commit
f19b8096f1
|
@ -639,6 +639,10 @@ class ConnectionImplementation implements ClusterConnection, Closeable {
|
||||||
LOG.debug("Table {} not enabled", tableName);
|
LOG.debug("Table {} not enabled", tableName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (TableName.isMetaTableName(tableName)) {
|
||||||
|
// meta table is always available
|
||||||
|
return true;
|
||||||
|
}
|
||||||
List<Pair<RegionInfo, ServerName>> locations =
|
List<Pair<RegionInfo, ServerName>> locations =
|
||||||
MetaTableAccessor.getTableRegionsAndLocations(this, tableName, true);
|
MetaTableAccessor.getTableRegionsAndLocations(this, tableName, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue