Region found in Meta but missing in HDFS

Know how to troubleshoot issues related to the regions that are found in the Meta table however missing in the HDFS cluster.

Condition

Region is listed in hbase:meta but does not exist on the HDFS cluster.

Cause

The Catalog Janitor did not clean a stale reference from the failed split or merge.

No application impact; however, causes inconsistencies.

Remedy

  1. Run any one of the following commands to troubleshoot the issue.
    hdfs dfs -ls /hbase/data/<namespace>/<table>/<region-id>
    OR
    hbase hbck -j <hbck2-jar> extraRegionsInMeta <namespace>:<table>
  2. Run the following command to fix the issue.
    hbase hbck -j <hbck2-jar> extraRegionsInMeta <namespace>:<table> -f