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:
mbertozzi 2013-10-18 20:33:26 +00:00
parent 180a6490d8
commit 6d0eade8b6
1 changed files with 4 additions and 0 deletions

View File

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