This is an automated email from the ASF dual-hosted git repository. lihan pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 05ed86f850 Fix the releaseIdleCounter is incorrect. 05ed86f850 is described below commit 05ed86f85028d2a72c83fe417af24dce7442cab9 Author: lihan <li...@apache.org> AuthorDate: Fri Aug 4 14:52:50 2023 +0800 Fix the releaseIdleCounter is incorrect. Fix the releaseIdleCounter does not increment when testAllIdle releases them. Pull request #241 provided by Arun Chaitanya Miriappalli --- .../src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java | 1 + webapps/docs/changelog.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java index 06989ab807..203abe1a50 100644 --- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java +++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java @@ -1197,6 +1197,7 @@ public class ConnectionPool { release = !reconnectIfExpired(con) || !con.validate(PooledConnection.VALIDATE_IDLE); } if (release) { + releasedIdleCount.incrementAndGet(); idle.remove(con); release(con); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 79f3ca2f55..e0b4ed7b94 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -168,6 +168,11 @@ </subsection> <subsection name="jdbc-pool"> <changelog> + <fix> + Fix the <code>releaseIdleCounter</code> does not increment when testAllIdle + releases them. Pull request <pr>241</pr> provided by Arun Chaitanya Miriappalli + (lihan) + </fix> <fix> Fix the <code>ConnectionState</code> state will be inconsistent with actual state on the connection when an exception occurs while writing. Pull request --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org