[jboss-jira] [JBoss JIRA] Resolved: (JBAS-7327) Connection validation should return valid connections to the pool when an invalid connection is found

Jesper Pedersen (JIRA) jira-events at lists.jboss.org
Tue Mar 9 11:09:59 EST 2010


     [ https://jira.jboss.org/jira/browse/JBAS-7327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesper Pedersen resolved JBAS-7327.
-----------------------------------

    Fix Version/s: JBossAS-6.0.0.M3
       Resolution: Done


> 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
>             Fix For: JBossAS-6.0.0.M3
>
>
> 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

        



More information about the jboss-jira mailing list