taklwu commented on pull request #2237:
URL: https://github.com/apache/hbase/pull/2237#issuecomment-674265891


   I apologized for the dev@ email, but I was thinking differently overnight 
about your suggestion (sorry that I reread many times until I found the gap 
this morning)
   
   > You can see the code in finisheActiveMasterInitialization and also the 
code in AssignmentManager.start. In AssignmentManager.start, we will try to 
load the start of meta region from zookeeper, and if there is none, we will 
create a region node in offline state. And in finishActiveMasterInitialization, 
if we find that the state of meta region node is offline, we will schedule 
InitMetaProcedure.
   So what you need to do here, is to put the meta region znode to zookeeper, 
before you restart the hbase cluster. So we will not schedule InitMetaProcedure 
again.
   
   
   didn't the coming up master region that store the meta location in 
[HBASE-24408](https://issues.apache.org/jira/browse/HBASE-24408) and 
[PR#1746](https://github.com/apache/hbase/pull/1746/commits/976d0c4e5b732a23773bd306f79e8017344b58f3)
 solve our conflict of interests that we don't need to relaying on ZK for 
getting the server name (old host) for the meta region ? such even if we don't 
have the ZK, we can move on and don't submit the InitMetaProcedure because the 
state of the meta region is not `OFFLINE`. 
   
   if you confirm above, I may say bring this PR and keep highlighting the 
zookeeper discussion is my mistake and I should have learnt the master region 
ahead of this PR. (then we just need to move to the coming up version, and we 
can still restart on the cloud use cases)


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to