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:
parent
f3089704d2
commit
0773209dd3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue