Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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
- is related to
-
CALCITE-5099 ResultSetEnumerable.enumeratorBasedOnStatement cause the backend connection leak
- Open