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

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

Back after [~zghaobac] landed his new 'HBCK Report' in HBase UI and after 
adding reporting by CatalogJanitor on various issues w/ hbase:meta. UI is 
coming along so now to outstanding fixHoles, fixOverlaps, and orphans.

On fixHoles:

 * Need to add to Hbck Interface a fixMeta method. It'll plug holes and 
overlaps found in hbase:meta by the new CatalogJanitor additions in 
HBASE-22723. If available on the server, HBCK2 would call it (later, could add 
an hbck shell command and it would call it instead -- could be part of a 
general plan of gradually moving hbck2 functionality over into server). 
Otherwise, if not available, HBCK2 would run its own attempt at fixing 
client-side where it did a scan of hbase:meta to find problems and then work on 
trying to fix anything it found -- a copy of the code we've added server-side.
 * But before fixing holes, operator should call addMissingRegionsToMeta -- the 
[~wchevreuil] addition over in HBASE-22567. It does better than hole fixing 
looking for candidate regions in fs with which it can plug holes. Could have 
the hole-fixer in HBCK2 call it first always (or maybe not if we are doing 
HBCK2 is made up of plumbing tools not trying to be porcelain).
 * fix overlaps is done by merging. The merge tool probably needs expansion. 
For example, it currently takes region names only. Would be handy if could pass 
rows in table so operator could ask merge all between two marker rows.

Outstanding then is adopting orphans in hdfs. 

> 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