Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8307

Ensure thread safety in the Druid plugin HTTP client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.20.2
    • 1.20.3
    • Storage - Other
    • None

    Description

      When multiple concurrent queries are run against a single Druid storage plugin then an error such as is shown below is reported by the Apache HttpClient used in that plugin. The Druid storage plugin uses a single static HttpClient instance which should be replaced with something like PoolingHttpClientConnectionManager or the OkHttp3 library for multithreaded access.

      [1cdd2b75-1310-xxxx-xxxx-5a638567ed07:foreman] INFO
      o.a.d.e.s.d.s.DruidSchemaFactory
      
      User Error Occurred: Failure while loading druid datasources for database
      'druid-egsmd300'. (Invalid use of BasicClientConnManager: connection still
      allocated.
      Make sure to release the connection before allocating another one.)
      org.apache.drill.common.exceptions.UserException: DATA_READ ERROR: Failure
      while loading druid datasources for database '<connection name>'.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dzamo James Turton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: