[ https://issues.apache.org/jira/browse/HBASE-21745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16904153#comment-16904153 ]
stack commented on HBASE-21745: ------------------------------- [~zghaobac] bq. For orphan regions on filesystem, use HBCK2 to fix it directly, ie. remove the region directory? stack I was thinking we'd add an 'adopt' API to hbck Service. You'd pass it one or more 'orphan' directories. The Master would read the directory and figure where to put the hfiles doing the right thing. The Master would be running an 'adoption service'. What you think [~zghaobac]? bq. For orphan regions on filesystem, the region dir can be removed directly only when the region dir is empty and there are overlap regions on meta. I do not follow what you are saying above. I was fine till I go to "....and there are overlap regions on meta." bq. But for the region holes, it should add a new regioninfo to meta and assign this region again. This need the user to analyze how to fix it. For region holes, we have a 'fix' in HBASE-22771 soon to be exposed by HBASE-22825)? It will create the region in meta. Does not assign it though. Yeah, operator would do this. Should add assign after hole is fixed? > Make HBCK2 be able to fix issues other than region assignment > ------------------------------------------------------------- > > Key: HBASE-21745 > URL: https://issues.apache.org/jira/browse/HBASE-21745 > Project: HBase > Issue Type: Umbrella > Components: hbase-operator-tools, hbck2 > Reporter: Duo Zhang > Assignee: stack > Priority: Critical > > This is what [~apurtell] posted on mailing-list, HBCK2 should support > * -Rebuild meta from region metadata in the filesystem, aka offline meta > rebuild.- > * -Fix assignment errors (undeployed regions, double assignments (yes, > should not be possible), etc)- (See > https://issues.apache.org/jira/browse/HBASE-21745?focusedCommentId=16888302&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16888302) > * Fix region holes, overlaps, and other errors in the region chain > * Fix failed split and merge transactions that have failed to roll back due > to some bug (related to previous) > * -Enumerate store files to determine file level corruption and sideline > corrupt files- > * -Fix hfile link problems (dangling / broken)- -- This message was sent by Atlassian JIRA (v7.6.14#76016)