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

Bug in SessionManager.stop() in HiveServer2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • HiveServer2
    • None

    Description

      The conf setting hive.server2.async.exec.shutdown.timeout is set to a long value (10L) in HiveConf.java, but it is read using getIntVar in SessionManager.stop.

      Instead it should be read as -

            long timeout = hiveConf.getLongVar(ConfVars.HIVE_SERVER2_ASYNC_EXEC_SHUTDOWN_TIMEOUT);
      

      Current code will either cause an assertion error if assertions are enabled, or it would return the timeout as -1 if the property is not set in hive-site.xml

      Workaround is to explicitly set the property in hive-site.xml

      Attachments

        1. HIVE-6184.1.patch.txt
          0.9 kB
          Navis Ryu

        Activity

          People

            navis Navis Ryu
            jaideepdhok Jaideep Dhok
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: