[
https://issues.apache.org/jira/browse/HBASE-22074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797868#comment-16797868
]
Duo Zhang commented on HBASE-22074:
-----------------------------------
Introduce a reportTransition method in RegionRemoteProcedureBase, where we will
store the TransitionCode and sequence id in the procedure state, and then wake
up the procedure. We will update the hbase:meta when executing the issue, using
the stored TransitionCode and sequence id. The advntage here is that, if we
have successfully stored the procedure state, then when master restarts, it
will not send the procedure to RS again as we will load the TransitionCode and
sequence id from the procedure store. And if the current master is not the
active one(but does not know this itself), the persisting of the procedure
state will fail as the active master will call recoverLease to close the
openning writers for the old master.
> Should use procedure store to persist the state in reportRegionStateTransition
> ------------------------------------------------------------------------------
>
> Key: HBASE-22074
> URL: https://issues.apache.org/jira/browse/HBASE-22074
> Project: HBase
> Issue Type: Bug
> Components: amv2, proc-v2
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Priority: Blocker
> Fix For: 3.0.0, 2.2.0, 2.3.0
>
> Attachments: HBASE-22074.patch
>
>
> For now we will update the meta region directly. This may cause lots of
> problems and after a bunch of fixes, we still can not solve the problem in
> HBASE-22060.
> So maybe the approach itself is not a good choice, let's try another way to
> see if it could work better.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)