Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2003

Avoid global synchronization around openConnection in JdbcMeta

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.11.0
    • avatica
    • None

    Description

      Had a report from a user where opening new connections to Avatica were stuck. Upon investigation, there was a single thread which had grabbed the local on the JdbcMeta instance in JdbcMeta#openConnection(ConnectionHandle), but was not returning out of the DriverManager.getConnection(...) call.

      Using the ConcurrentMap API over the Guava Cache API gives us enough flexibility that we can handle this safely without the total synchronization.

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: