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


   The master namespace logic looks good to me, but I have a minor question, do 
you see anywhere we have any procedure or cleanup logic delete the master 
namespace ? 
   
   > Should we prevent a user from creating a "master" namespace? Currently 
createNamespace doesn't fail for system namespaces (because it's assumed that 
the namespace already exists) 
   
   I found below that the `prepareCreate` as part fo the 
`CreateNamespaceProcedure` should fail if the namespace already exists, and 
you're right that it didn't protect the system namespace(s).  
   
   so, can you explain in what case the system namespaces in the meta table 
before it comes online would have the pre-existed namespaces? is it from a 
previous version ?  
   
   
https://github.com/apache/hbase/blob/202b17f4fc3229e91d584837776d53ed3e2e8adb/hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CreateNamespaceProcedure.java#L180-L193


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


Reply via email to