Details
Description
During HiveMetaStore starting,the following steps should be reordered:
1,Creation of TServerSocket
2,Creation of HMSHandler
3,Creation of TThreadPoolServer
Step 2 involves some initialization work including :
createDefaultDB(); createDefaultRoles(); addAdminUsers();
TServerSocket shall be created after these initialization work to prevent unnecessary waiting from client side.And if there are errors during initialization (multiple metastores creating default DB at the same time can cause errors),clients shall not connect to this metastore as it will shuting down due to error.