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

gaojinchao commented on HBASE-4124:
-----------------------------------

@ Ted
I am making a patch for TRUNK. But I have some questions about TRUNK.
It seems a bug.
In function assign, when we get the return value "ALREADY_OPENED" .
should we update the meta table ?  or we do this on region server.

hmaster code:
  RegionOpeningState regionOpenState = serverManager.sendRegionOpen(plan
            .getDestination(), state.getRegion());
        if (regionOpenState == RegionOpeningState.ALREADY_OPENED) {

region server code: if we don't update the meta ,the client may access to the 
old server.

 HRegion onlineRegion = this.getFromOnlineRegions(region.getEncodedName());
    if (null != onlineRegion) {
      LOG.warn("Attempted open of " + region.getEncodedName()
          + " but already online on this server");
      return RegionOpeningState.ALREADY_OPENED;
    }

> ZK restarted while a region is being assigned, new active HM re-assigns it 
> but the RS warns 'already online on this server'.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4124
>                 URL: https://issues.apache.org/jira/browse/HBASE-4124
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>            Reporter: fulin wang
>            Assignee: gaojinchao
>             Fix For: 0.90.5
>
>         Attachments: HBASE-4124_Branch90V1_trial.patch, 
> HBASE-4124_Branch90V2.patch, HBASE-4124_Branch90V3.patch, 
> HBASE-4124_Branch90V4.patch, log.txt
>
>   Original Estimate: 0.4h
>  Remaining Estimate: 0.4h
>
> ZK restarted while assigning a region, new active HM re-assign it but the RS 
> warned 'already online on this server'.
> Issue:
> The RS failed besause of 'already online on this server' and return; The HM 
> can not receive the message and report 'Regions in transition timed out'.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to