You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (JIRA)" <ji...@apache.org> on 2019/05/13 07:31:00 UTC

[jira] [Commented] (HBASE-22404) Open/Close region request may be executed twice when master restart

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

Duo Zhang commented on HBASE-22404:
-----------------------------------

Since we have already sent the procedure id to region server, I think we could record the recent processed open/close procedure ids and ignore it when receiving again...

> Open/Close region request may be executed twice when master restart
> -------------------------------------------------------------------
>
>                 Key: HBASE-22404
>                 URL: https://issues.apache.org/jira/browse/HBASE-22404
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 3.0.0, 2.2.0, 2.3.0
>            Reporter: Guanghao Zhang
>            Priority: Major
>
> We found this problem when run ITBLL for our internal branch which based branch-2.2.
>  # Master A schedule a TRSP which will reopen region1. And this TRSP firstly schdule a sub remote procedure: CloseRegionProcedure and send the close region request to RS.
>  # Master A shutdown and Master B is the new active master. And restore this TRSP and the remote procedure CloseRegionProcedure.
>  # RS reported to the new Master B and the CloseRegionProcedure finished. Then the TRSP schdule a new OpenRegionProcedure and send open region request to RS.
>  # {color:#FF0000}But meanwhile Master B send the close region request to RS again{color}.
>  # The open region request finished firstly and report to master succeed. The master thought the region was opened on RS. But the RS excuted the close region request again and closed the region1.
>  # The Master thought the region opened but the RS closed the region. Then the new TRSP will stuck forever.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)