[ 
https://issues.apache.org/jira/browse/HIVE-12496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nemon Lou updated HIVE-12496:
-----------------------------
    Attachment: HIVE-12496.patch

> Open ServerTransport After MetaStore Initialization 
> ----------------------------------------------------
>
>                 Key: HIVE-12496
>                 URL: https://issues.apache.org/jira/browse/HIVE-12496
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>    Affects Versions: 1.2.1
>         Environment: Standalone MetaStore, cluster mode(multiple instances)
>            Reporter: Nemon Lou
>            Assignee: Nemon Lou
>            Priority: Minor
>         Attachments: HIVE-12496.patch
>
>
> 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 :
> {noformat}
>           createDefaultDB();
>           createDefaultRoles();
>           addAdminUsers();
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to