HBASE-30469 RegionsMerger picks up regions of other tables with similar names (#168)

getOpenRegions looked up a table's regions in hbase:meta with a
case-insensitive SubstringComparator on "<table>,", which also matches
rows of other tables, e.g. "ns:t1", "abct1" or "T1" when merging "t1",
and rows whose start key contains "t1,". The tool then aborted with
FileNotFoundException looking for those regions under the target
table's directory, or could try to merge them.

Scan only the table's own row range in meta, skip any region not
belonging to the table, and close the meta Table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Nihal Jain <nihaljain@apache.org
2 files changed
tree: 67e5adde1c3a5b84e8b6058bc9ce8b180a4847f2
  1. build-support/
  2. dev-support/
  3. hbase-hbck2/
  4. hbase-operator-tools-assembly/
  5. hbase-table-reporter/
  6. hbase-tools/
  7. .asf.yaml
  8. .gitignore
  9. CHANGES.md
  10. LICENSE.txt
  11. NOTICE.txt
  12. pom.xml
  13. README.md
  14. RELEASENOTES.md
README.md

hbase-operator-tools

Host for Apache HBaseâ„¢ operator tools including:

  • HBCK2, the hbase-2.x fix-it tool, the successor to hbase-1's hbck (A.K.A hbck1).
  • TableReporter, a tool to generate a basic report on Table column counts and row sizes; use when no distributed execution available.