https://bz.apache.org/bugzilla/show_bug.cgi?id=64083
Bug ID: 64083
Summary: JDBC pool keeps closed connection as available
Product: Tomcat Modules
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: jdbc-pool
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
In my case the PG driver has closed connecction because of kind of I/O error -
an attempt to pass too many parameters for PreparedStatement.
I've created an example:
https://github.com/panchenko/tomcat-bugs/blob/master/jdbc-return-closed-connection/src/test/java/org/example/jdbc/ReturnClosedConnectionTest.java
However that closed connection was added to the avaiable ones in the ppol
(despite an error during clearWarnings, etc).
And then some other code got that closed connection and failed.
The pool request: https://github.com/apache/tomcat/pull/235
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]