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

Huaxiang Sun edited comment on HBASE-24255 at 4/29/20, 4:31 PM:
----------------------------------------------------------------

{quote}

 I think GCMultipleMergedRegionsProcedure no need to check parent region 
whether on online, for it should not be .And yes addMissingRegionsInMeta maybe 
has some bugs to reassign the parent merge/split region

Agree, [~niuyulin], MissingRegionsInMeta should not reassign the parent 
merge/split region as the new child/children regions are already there. 
Reassign will cause another issues such as region overlap. 


was (Author: huaxiangsun):
{quote}

 I think GCMultipleMergedRegionsProcedure no need to check parent region 
whether on online, for it should not be .And yes addMissingRegionsInMeta maybe 
has some bugs to reassign the parent merge/split region

 \{quote}

Agree, [~niuyulin], MissingRegionsInMeta should not reassign the parent 
merge/split region as the new child/children regions are already there. 
Reassign will cause another issues such as region overlap. 

> GCRegionProcedure doesn't assign region from RegionServer leading to orphans
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-24255
>                 URL: https://issues.apache.org/jira/browse/HBASE-24255
>             Project: HBase
>          Issue Type: Bug
>          Components: proc-v2, Region Assignment, regionserver
>    Affects Versions: 2.2.4
>         Environment: hbase 2.2.4
> hadoop 3.1.3
>            Reporter: Andrey Elenskiy
>            Assignee: niuyulin
>            Priority: Major
>
> We've found ourselves in a situation where parents of merged or split regions 
> needed to be opened again on a regionserver due to having to recover from 
> cluster meltdown (HBCK2's fixMeta kicks off GCMultipleMergedRegionsProcedure 
> which requiters all regions to be merged to be open). Then, when a 
> GCProcedure is kicked of to clean a parent region up by 
> GCMultipleMergedRegionsProcedure, it ends up deleting it from hbase:meta, but 
> doesn't unassign it from RegionServer leading for it to show up in "Orphan 
> Regions on RegionServer" in hbck tab of HBase Master. Also, the hbase client 
> doesn't detect that the region is closed either because it's still 
> technically open on a regionserver (it doesn't reread hbase:meta all the 
> time). The only way to recover from this is to restart regionserver which 
> isn't idea as it can lead to other issues in clusters with region 
> inconsistencies.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to