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

Resource leak by druid http client

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Druid integration
    • Labels:

      Description

      Current implementation of druid storage handler does leak some resources if the creation of the http client fails due to too many files exception.
      The reason this is leaking is the fact the cleaning hook is registered after the client starts.
      In order to fix this will extract the creation of the HTTP client to become static and reusable instead of per query creation.

        Attachments

        1. 16588.patch
          20 kB
          Slim Bouguerra
        2. 16588.1.patch
          20 kB
          Slim Bouguerra

          Activity

            People

            • Assignee:
              bslim Slim Bouguerra
              Reporter:
              bslim Slim Bouguerra
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: