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

HiveServer2: Provide the user with different error messages depending on the Thrift client exception code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0, 0.13.0, 0.14.0, 0.15.0
    • 2.1.1, 2.2.0
    • HiveServer2
    • None

    Description

      After verifying that the original problem is mostly solved by the Thrift upgrade, I created a patch to provide better error message when possible

      Original description for reference:
      ---------------------------------------
      An example of where it is needed: it has been reported that when # of client connections is greater than hive.server2.thrift.max.worker.threads, HiveServer2 stops accepting new connections and ends up having to be restarted. This should be handled more gracefully by the server and the JDBC driver, so that the end user gets aware of the problem and can take appropriate steps (either close existing connections or bump of the config value or use multiple server instances with dynamic service discovery enabled). Similarly, we should also review the behaviour of background thread pool to have a well defined behavior on the the pool getting exhausted.

      Ideally implementing some form of general admission control will be a better solution, so that we do not accept new work unless sufficient resources are available and display graceful degradation under overload.

      Attachments

        1. HIVE-9423.2.patch
          5 kB
          Peter Vary
        2. HIVE-9423.3.patch
          5 kB
          Peter Vary
        3. HIVE-9423.4.patch
          5 kB
          Peter Vary
        4. HIVE-9423.5.patch
          5 kB
          Peter Vary
        5. HIVE-9423.5-branch-2.1.patch
          6 kB
          Peter Vary
        6. HIVE-9423.6-branch-2.1.patch
          6 kB
          Peter Vary
        7. HIVE-9423.patch
          2 kB
          Peter Vary

        Issue Links

          Activity

            People

              pvary Peter Vary
              vgumashta Vaibhav Gumashta
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: