HBASE-9786 hbck -metaonly incorrectly reports inconsistent regions after HBASE-9698 fix
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1533620 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
180a6490d8
commit
6d0eade8b6
|
@ -1868,6 +1868,10 @@ public class HBaseFsck extends Configured implements Tool {
|
|||
private void loadTableInfosForTablesWithNoRegion() throws IOException {
|
||||
Map<String, HTableDescriptor> allTables = new FSTableDescriptors(getConf()).getAll();
|
||||
for (HTableDescriptor htd : allTables.values()) {
|
||||
if (checkMetaOnly && !htd.isMetaTable()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
TableName tableName = htd.getTableName();
|
||||
if (isTableIncluded(tableName) && !tablesInfo.containsKey(tableName)) {
|
||||
TableInfo tableInfo = new TableInfo(tableName);
|
||||
|
|
Loading…
Reference in New Issue