HBASE-20310 Fixed false inconsistency shown by hbck -metaonly option on HBase 2

When -metaonly option is specified then tablesInfo is not populated for all tables from hdfs causing false inconsistency of dangling state in meta.
This commit is contained in:
Umesh Agashe 2018-03-30 12:21:31 -07:00 committed by Michael Stack
parent f3089704d2
commit 0773209dd3
1 changed files with 3 additions and 1 deletions

View File

@ -2105,7 +2105,9 @@ public class HBaseFsck extends Configured implements Closeable {
errors.reportError(ERROR_CODE.ORPHAN_TABLE_STATE,
tableName + " unable to delete dangling table state " + tableState);
}
} else {
} else if (!checkMetaOnly) {
// dangling table state in meta if checkMetaOnly is false. If checkMetaOnly is
// true, tableInfo will be null as tablesInfo are not polulated for all tables from hdfs
errors.reportError(ERROR_CODE.ORPHAN_TABLE_STATE,
tableName + " has dangling table state " + tableState);
}