You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/09/08 13:50:52 UTC
DO NOT REPLY [Bug 51786] New: Discarded connection stay active in
pool
https://issues.apache.org/bugzilla/show_bug.cgi?id=51786
Bug #: 51786
Summary: Discarded connection stay active in pool
Product: Tomcat Modules
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: jdbc-pool
AssignedTo: dev@tomcat.apache.org
ReportedBy: julien@vaudour.net
Classification: Unclassified
Hi,
I wrote an JdbcInterceptor that flag connection as discarded in case of
Exception that makes the connection unusable.
The problem is:
when I call close on the connection, it is not returned to the pool and it is
still considered as an active connection in the pool.
The cause of the problem is those pieces of code in ProxyConnection:
if (compare(CLOSE_VAL,method)) {
if (isClosed()) return null; //noop for already closed.
PooledConnection poolc = this.connection;
this.connection = null;
pool.returnConnection(poolc);
return null;
}
and
public boolean isClosed() {
return connection==null || connection.isDiscarded();
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51786] Discarded connection stay active in pool
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51786
Keiichi Fujino <kf...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Keiichi Fujino <kf...@apache.org> 2011-09-14 09:30:45 UTC ---
Thanks for report.
This is fixed in r1170479 and r1170485 and will be in 7.0.22 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51786] Discarded connection stay active in pool
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51786
seneque <ju...@vaudour.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |julien@vaudour.net
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org