[
https://issues.apache.org/jira/browse/HBASE-24924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17181661#comment-17181661
]
Bo Cui edited comment on HBASE-24924 at 8/21/20, 7:03 AM:
----------------------------------------------------------
{quote}I assume in a normal deployment, we should not delete the meta znode?
The guys from AWS has a scenario where they restart a cluster with nothing on
zookeeper, then the problem is the InitMetaProcedure will delete the meta
region...
{quote}
yeah, 2.2.3 and master InitMetaProcedure are different. the 2.2.3
InitMetaProcedure does not create metaTable, so master can resubmit
InitMetaProcedure. but in branch-master,master executes only
INIT_META_ASSIGN_META(if meta dir already exists, InitMetaProcedure should skip
INIT_META_WRITE_FS_LAYOUT and INIT_META_CREATE_NAMESPACES)
was (Author: bo cui):
{{{quote}}}I assume in a normal deployment, we should not delete the meta
znode? The guys from AWS has a scenario where they restart a cluster with
nothing on zookeeper, then the problem is the InitMetaProcedure will delete the
meta region...
{{{quote}}}
yeah, 2.2.3 and master InitMetaProcedure are different. the 2.2.3
InitMetaProcedure does not create metaTable, so master can resubmit
InitMetaProcedure. but in branch-master,master executes only
INIT_META_ASSIGN_META(if meta dir already exists, InitMetaProcedure should skip
INIT_META_WRITE_FS_LAYOUT and INIT_META_CREATE_NAMESPACES)
> stuck InitMetaProcedure in finishActiveMasterInitialization
> -----------------------------------------------------------
>
> Key: HBASE-24924
> URL: https://issues.apache.org/jira/browse/HBASE-24924
> Project: HBase
> Issue Type: Bug
> Components: master
> Affects Versions: 3.0.0-alpha-1, 2.2.3
> Reporter: Bo Cui
> Assignee: Bo Cui
> Priority: Major
> Attachments: image-2020-08-21-09-12-33-894.png, masterLog.gif
>
>
> if procWAL has InitMetaProcedure, and InitMetaProcedure state is finished,
> and meta znode does not exist, finishActiveMasterInitialization will stuck
> because during startup,If InitMetaProcedure exists, InitMetaProcedure
> recreates a new CountDownLatch.
> master jstack
> !image-2020-08-21-09-12-33-894.png!
> master log
> !masterLog.gif!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)