Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.14.1, 3.15.0
-
None
-
Unknown
Description
Originally reported on the a Quarkus Zulip thread:
https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Camel.20JDBC.20leaks.20statement
There are 2 different execution paths in JdbcProducer. doCreateAndExecuteSqlStatementWithHeaders & doCreateAndExecuteSqlStatement.
doCreateAndExecuteSqlStatementWithHeaders does close the PreparedStatement:
doCreateAndExecuteSqlStatement does not:
This PR & commit suggests auto-closing is perhaps not desirable:
https://github.com/apache/camel/pull/6192
The code prior to Camel 3.12.x did close the PreparedStatement in the finally block, so maybe that should be restored.
Attachments
Attachments
Issue Links
- is related to
-
CAMEL-19256 camel-jdbc: leaks the statement in doCreateAndExecuteSqlStatement
- Resolved
-
CAMEL-17032 camel-jdbc: investigate if resource usage can be improved
- Resolved