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

Chinna Rao Lalam commented on HBASE-5806:
-----------------------------------------

Here considered following scenarios:

1.If the regionserver is restarted after removing the parent region from the 
online regions.
2.If Master is restarted while doing the region split in RS and it is in the 
flow of tickling from SPLIT-SPLIT or SPLITTING-SPLIT.
3.If Master is restarted after splitting is completely done and before deleting 
the region from META using catalogjanitor.

In the first scenario the problem is, in ServerShutdownHandler while 
constructing hris it will check whether it is in RIT and is !isClosing and 
!isPendingClose and it will remove from hris. Remaining hris it will try to 
assign and no one will attempt to assign that region.

{code}
      // Skip regions that were in transition unless CLOSING or PENDING_CLOSE
      for (RegionState rit : regionsInTransition) {
        if (!rit.isClosing() && !rit.isPendingClose() && !rit.isSplitting()) {
          LOG.debug("Removed " + rit.getRegion().getRegionNameAsString() +
          " from list of regions to assign because in RIT; region state: " +
          rit.getState());
          if (hris != null) hris.remove(rit.getRegion());
        }
      }
{code}


In the second scenario the problem is, in AssignmentManager while 
rebuildUserRegions() it should not consider the region which will have the 
znode with Split or Splitting state because region split might be completed or 
partially done.

In the third scenario the problem is, region split is completely done and it is 
not yet deleted from META using catalogjanitor so in 
AssignmentManager while rebuildUserRegions() it should not consider this region.
                
> Handle split region related failures on master restart and RS restart
> ---------------------------------------------------------------------
>
>                 Key: HBASE-5806
>                 URL: https://issues.apache.org/jira/browse/HBASE-5806
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.1
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: Chinna Rao Lalam
>             Fix For: 0.92.2, 0.96.0, 0.94.1
>
>         Attachments: HBASE-5806.patch
>
>
> This issue is raised to solve issues that comes out of partial region split 
> happened and the region node in the ZK which is in RS_ZK_REGION_SPLITTING and 
> RS_ZK_REGION_SPLIT is not yet processed.
> This also tries to address HBASE-5615.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to