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

HiveServer2 accumulates orphaned OperationHandle objects when a client fails while executing query

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: HiveServer2
    • Labels:
      None

      Description

      When queries are executed against the HiveServer2 an OperationHandle object is stored in the OperationManager.handleToOperation HashMap. Currently its the duty of the JDBC client to explicitly close to cleanup the entry in the map. But if the client fails to close the statement then the OperationHandle object is never cleaned up and gets accumulated in the server.

      This can potentially cause OOM on the server over time. This also can be used as a loophole by a malicious client to bring down the Hive server.

        Attachments

        1. HIVE-5268_prototype.patch
          16 kB
          Thiruvel Thirumoolan

          Issue Links

            Activity

              People

              • Assignee:
                thiruvel Thiruvel Thirumoolan
                Reporter:
                vgumashta Vaibhav Gumashta
              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated: