Croway opened a new pull request, #30053: URL: https://github.com/apache/camel/pull/30053
Backport of #30013 ([CAMEL-26986](https://issues.apache.org/jira/browse/CAMEL-26986)) to `camel-4.22.x` (straight cherry-pick: `git cherry-pick -x 6000ce1393e5`, no conflicts, no change). The JDBC producer now calls `close()` on the connection, statement and result set even when `isClosed()` already returns true (a driver closes its connection itself after a fatal error, and a pool such as Agroal gets the connection back only from `close()`), so the pool no longer loses one connection per such error. `mvnd verify -pl components/camel-jdbc -am -Dtest='Jdbc*Test'` on `camel-4.22.x`: 45 tests pass, including the new `JdbcProducerConnectionClosedByDriverTest` (3/3), which fails 3/3 with the `JdbcProducer` change reverted (`connections not given back to the pool ==> expected: <0> but was: <1>`). _Claude Code on behalf of Croway_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
