Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12496

Open ServerTransport After MetaStore Initialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.1
    • 2.0.0
    • Metastore
    • None
    • Standalone MetaStore, cluster mode(multiple instances)

    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.

      Attachments

        1. HIVE-12496.patch
          1 kB
          Nemon Lou

        Activity

          People

            nemon Nemon Lou
            nemon Nemon Lou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: