Connection validation should return valid connections to the pool when an invalid
connection is found
-----------------------------------------------------------------------------------------------------
Key: JBAS-7327
URL:
https://jira.jboss.org/jira/browse/JBAS-7327
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: JBossAS-4.2.3.GA
Environment: unix, hp-ux
Reporter: Borja Ruiz
Assignee: Jesper Pedersen
There is a bug in validation code, in
org.jboss.resource.connectionmanager.InternalManagedConnectionPool class
validateConnections method. It is easily reproducible by the following example. You have a
set of 3 connections in the pool, and when you run this validation code, the fist one is
not valid and the following 2 are valid. As you do not update "destroyed"
variable to "false" on every iteraion, those 2 valid connections do not return
to the pool, resulting in two ESTABLISHED connections going out of pool control. Also,
resource adapter counters don't get updated, resulting in an inconsistent status.
In JBoss forum reference I have provided affected code and a solution developed by me as a
suggestion
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira