[jbossts-issues] [JBoss JIRA] (JBTM-1183) XA connections leak in XARecoveryModule

v a (JIRA) jira-events at lists.jboss.org
Sat Jun 9 04:06:18 EDT 2012


    [ https://issues.jboss.org/browse/JBTM-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700303#comment-12700303 ] 

v a commented on JBTM-1183:
---------------------------

I debugged a bit more and found that it's also necessary to specify the recovery plugin. So now it works for PostgreSQL. But it's still a leak if isValid returns false for some connection.
{code}
<xa-datasource>
  ...
  <recovery no-recovery="false">
    <recover-plugin class-name="org.jboss.jca.core.recovery.ValidatingManagedConnectionFactoryRecoveryPlugin"/>
  </recovery>
</xa-datasource>
{code}
                
> XA connections leak in XARecoveryModule
> ---------------------------------------
>
>                 Key: JBTM-1183
>                 URL: https://issues.jboss.org/browse/JBTM-1183
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Recovery
>    Affects Versions: 4.16.4
>         Environment: JBoss AS 7.1.x, 7.2.0.Alpha1
>            Reporter: v a
>            Assignee: Tom Jenkinson
>            Priority: Critical
>
> XARecoveryModule._xidScans accumulates XA connections if JDBC driver does not implement Connection.isValid(int timeout) method or if isValid returns false. It's the case for PostgreSQL JDBC driver.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list