in hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsck.java [3006:3030]
private void loadTableInfosForTablesWithNoRegion() throws IOException {
Map<String, TableDescriptor> tables;
FSTableDescriptors tableDescriptors = new FSTableDescriptors(getConf());
if (!tablesIncluded.isEmpty()) {
tables = new HashMap<>();
for (TableName tableName: getIncludedTables()) {
tables.put(tableName.getNameWithNamespaceInclAsString(), tableDescriptors.get(tableName));
}
} else {
tables = tableDescriptors.getAll();
}
for (TableDescriptor htd : tables.values()) {
if (checkMetaOnly && !htd.isMetaTable()) {
continue;
}
TableName tableName = htd.getTableName();
if (!tablesInfo.containsKey(tableName)) {
TableInfo tableInfo = new TableInfo(tableName);
tableInfo.htds.add(htd);
tablesInfo.put(htd.getTableName(), tableInfo);
}
}
}