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

HiveServer2.startHiveServer2 retries of start has concurrency issues

    XMLWordPrintableJSON

Details

    Description

      HS2 starts the thrift binary/http servers in background, while it proceeds to do other setup (eg create zookeeper entries). If there is a ZK error and it attempts to stop and start in the retry loop within HiveServer2.startHiveServer2, the retry fails because the thrift server doesn't get stopped if it was still getting initialized.

      The thrift server initialization and stopping needs to be synchronized.

      Attachments

        1. HIVE-19776.1.patch
          17 kB
          Thejas Nair
        2. HIVE-19776.2.patch
          17 kB
          Thejas Nair
        3. HIVE-19776.3.patch
          18 kB
          Thejas Nair

        Activity

          People

            thejas Thejas Nair
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m