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

backend jdbc connection does not returned to connection pool after execute a query.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core
    • None
    • JDK 8

    Description

      When we use calcite jdbc adapter to connect to backend database like Oracles, after running query, the connection does not get returned to connection pool after execution. The apache jdbc dbcp connection pool default max connection is 8. So after running a couple times of queries, all connections got used, the new request got hang due to not able to get hold of a free connection.

      In org.apache.calcite.runtime.ResultSetEnumerable class
      line 146 statement = null;
      147 connection = null;
      should we remove those lines so in the finally block the connection.close(); can be executed?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jingwuli Jingwu Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: