[ 
https://issues.apache.org/jira/browse/HBASE-21745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905312#comment-16905312
 ] 

stack commented on HBASE-21745:
-------------------------------

bq. We found some orphan regions on our test cluster. The regions dir is empty. 
And no region holes in meta. For this case, the orphan region dir shouled be 
remove directly.

Yes.

If an adoption service, we'd give the master these dirs and it would just 
delete them.

bq. I thought we can do this at HBCK tool (client-side). But should not add 
'adopt' API to hbck Service now (master-side).

Ok. Lets see how we do. I think adoption service is what we want in the end. 
Maybe we get there incrementally.

So, for empty dirs, the answer is easy... just delete. If a region in HDFS and 
a hole in meta that corresponds, there is the tool that [~wchevreuil] added to 
HBCK2 which should find the region in HDFS and then hoists it up into 
hbase:meta filling the hole.

For anything else, an overlap found in HDFS...  we'll need to add something ... 
to the master? Otherwise its HBCK2 figuring where the hfiles should go, placing 
them there, then reopen of the touched regions. 

> 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)

Reply via email to