[
https://issues.apache.org/jira/browse/HBASE-25266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17230821#comment-17230821
]
Wellington Chevreuil commented on HBASE-25266:
----------------------------------------------
Ah yeah, could add an additional wal player step. On the case we were working
here, the "orphaned" regions were mainly results of merges that got interrupted
via "hbck2 bypass", so no recovered.edits were present on the regions dirs. I
can modify current PR to include that as well.
Also, I had originally thought this to be performing too much work than what
hbck2 commands normally do (uses existing hbck2 commands, plus bulkload, plus
move dirs around, plus wal player now), so put it as a standalone one under
hbase-tools module. My view is that hbck2 commands should be more granular, but
[~busbey] also had suggested this to be under hbck2, so if you guys still
think this fits better as another hbck2 command, I'm fine moving it there.
> [hbase-operator-tools] Add a repair tool for moving stale regions dir not
> present in meta away from table dir
> -------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-25266
> URL: https://issues.apache.org/jira/browse/HBASE-25266
> Project: HBase
> Issue Type: New Feature
> Reporter: Wellington Chevreuil
> Assignee: Wellington Chevreuil
> Priority: Major
>
> This adds a new tool under *hbase-tools* module, that allows for moving aways
> regions dirs existing under table's hdfs dir, but not in meta. This is useful
> in cases where the region is not present in meta, but still has data on hdfs,
> yet no holes in the table region chain is detected.
> On such cases, the existing *HBCK2 addFsRegionsMissingInMeta* command isn't
> ideal, as it would bring the region back in meta and cause overlaps.
> This tool performs the following actions:
> 1) Identifies regions in hdfs but not in meta using
> *HBCK2.reportTablesWithMissingRegionsInMeta*;
> 2) For each of these regions, sidelines the related dir to a temp folder;
> 3) Bulkload hfiles from each sidelined region to the related table;
> Sidelined regions are never removed from temp folder. Operators should remove
> those manually, after they certified on data integrity.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)