Overlapping regions-same start key

Know how to troubleshoot issues related to the overlapping regions having the same start key.

Condition

Multiple regions have identical start keys.

Cause

Failed splits or improper region assignment.

As a result, read or write operations might fail.

Remedy

  1. Run the following command to troubleshoot the issue.
    hbase hbck -details <table> | grep "regions have the same startkey"
  2. Merge the overlapping regions.
    hbase> merge_region '<region1>', '<region2>'
  3. Compact the clean up the region.
    hbase> major_compact '<new_region>'
    hbase> catalogjanitor_run