[
https://issues.apache.org/jira/browse/HBASE-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093463#comment-13093463
]
Todd Lipcon commented on HBASE-4287:
------------------------------------
bq. Why a new state? Don't we have enough to manage already?
My personal preference is that each state is only used for one specific thing
-- this makes it easier to understand when looking at logs. We'll see that it
transitioned from OPENING to FAILED_OPEN, rather than OPENING to OFFLINE or
CLOSED -- makes it more obvious what actually happened. In the future we could
also include some more data in there (eg, the exception message)
bq. Because here also there a chance for failure due to some zk exception.
If it fails due to ZK exception, then the options are (a) this RS lost its ZK
lease, in which case it will be handled by the server shutdown handler, or (b)
someone else ended up opening the region and thus the version numbers didn't
match. In that latter case, the transition to FAILED_OPEN would fail for the
same reason.
> If region opening fails, try to transition region back to "offline" in ZK
> -------------------------------------------------------------------------
>
> Key: HBASE-4287
> URL: https://issues.apache.org/jira/browse/HBASE-4287
> Project: HBase
> Issue Type: Improvement
> Components: master, regionserver
> Affects Versions: 0.90.4
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Fix For: 0.94.0
>
> Attachments: 0004-HBASE-4287.-FAILED_OPEN-state-in-ZK-v2.patch,
> 0004-HBASE-4287.-FAILED_OPEN-state-in-ZK.patch
>
>
> In the case that region-opening fails, we currently just close the region
> again, but don't do anything to the node in ZK. Instead, we should attempt to
> transition it from the OPENING state back to an OFFLINE state, or perhaps a
> new FAILED_OPEN state. Otherwise, we have to wait for the full timeoutMonitor
> period to elapse, which can be quite a long time.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira