Apache9 commented on PR #5167:
URL: https://github.com/apache/hbase/pull/5167#issuecomment-1516362183
> > then insert a record to the master region so we can skip scheduling the
InitMetaProcedure.
>
> We can insert record but we may not know the state and location which
leads to InitMetaProcedure again.
Checked the code, the condition for whether to schedule an InitMetaProcedure
is
```
if
(!this.assignmentManager.getRegionStates().hasTableRegionStates(TableName.META_TABLE_NAME))
{
```
So I think it only needs we have a record in master region for meta, and do
not need to know its state and location?
And we will first try to migrate from zookeeper, and for 1.x, if the cluster
shutdown gracefully, there is no znode for meta, then we can enter the logic
described above, so in this case, I think the state for meta should be CLOSED?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]