[jboss-jira] [JBoss JIRA] (WFLY-13633) Undeployed CMR resource JNDI names are not deregisted as needing to be treated as CMR

Thomas Jenkinson (Jira) issues at jboss.org
Wed Jul 1 06:50:59 EDT 2020


     [ https://issues.redhat.com/browse/WFLY-13633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Jenkinson updated WFLY-13633:
------------------------------------
    Description: 
https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/service/CMResourceService.java#L83 does not remove the JNDI name from the list of names that Narayana will treat as CMR resources as it is removed from a copy of the map: https://github.com/jbosstm/narayana/blob/48818111d12d2e51b52082a00bcb606040c36546/ArjunaJTA/jta/classes/com/arjuna/ats/jta/common/JTAEnvironmentBean.java#L1089

This means that if Narayana encounters another resource at a later time with the same JNDI name it will consider it is a CMR resource.

  was:
https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/service/CMResourceService.java#L83 does not remove the JNDI name from the list of names that Narayana will treat as CMR resources as it is removed from a copy of the map: https://github.com/jbosstm/narayana/blob/48818111d12d2e51b52082a00bcb606040c36546/ArjunaJTA/jta/classes/com/arjuna/ats/jta/common/JTAEnvironmentBean.java#L1089

This means that if Narayana encounters another resource with the same name at a later date it will consider it is a CMR resource.



> Undeployed CMR resource JNDI names are not deregisted as needing to be treated as CMR
> -------------------------------------------------------------------------------------
>
>                 Key: WFLY-13633
>                 URL: https://issues.redhat.com/browse/WFLY-13633
>             Project: WildFly
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Thomas Jenkinson
>            Assignee: Michael Musgrove
>            Priority: Blocker
>
> https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/service/CMResourceService.java#L83 does not remove the JNDI name from the list of names that Narayana will treat as CMR resources as it is removed from a copy of the map: https://github.com/jbosstm/narayana/blob/48818111d12d2e51b52082a00bcb606040c36546/ArjunaJTA/jta/classes/com/arjuna/ats/jta/common/JTAEnvironmentBean.java#L1089
> This means that if Narayana encounters another resource at a later time with the same JNDI name it will consider it is a CMR resource.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list