Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9583 Rolling upgrade of Hive MetaStore Server
  3. HIVE-9508

MetaStore client socket connection should have a lifetime

    XMLWordPrintableJSON

Details

    Description

      Currently HiveMetaStoreClient (or SessionHMSC) is connected to one Metastore server until the connection is closed or there is a problem. I would like to introduce the concept of a MetaStore client socket life time. The MS client will reconnect if the socket lifetime is reached. This will help during rolling upgrade of Metastore.

      When there are multiple Metastore servers behind a VIP (load balancer), it is easy to take one server out of rotation and wait for 10+ mins for all existing connections will die down (if the lifetime is 5mins say) and the server can be updated.

      Attachments

        1. HIVE-9508.1.patch
          3 kB
          Thiruvel Thirumoolan
        2. HIVE-9508.2.patch
          5 kB
          Thiruvel Thirumoolan
        3. HIVE-9508.3.patch
          5 kB
          Thiruvel Thirumoolan
        4. HIVE-9508.4.patch
          5 kB
          Thiruvel Thirumoolan
        5. HIVE-9508.5.patch
          5 kB
          Thiruvel Thirumoolan
        6. HIVE-9508.6.patch
          6 kB
          Thiruvel Thirumoolan

        Issue Links

          Activity

            People

              thiruvel Thiruvel Thirumoolan
              thiruvel Thiruvel Thirumoolan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: