[jbossts-issues] [JBoss JIRA] (JBTM-2757) ThreadAssociations#add uses getKey but then it overwrites the transactions associated with the thread

Tom Jenkinson (JIRA) issues at jboss.org
Fri Jun 23 12:23:17 EDT 2017


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

Tom Jenkinson reassigned JBTM-2757:
-----------------------------------

    Assignee: Ondra Chaloupka  (was: Tom Jenkinson)


> ThreadAssociations#add uses getKey but then it overwrites the transactions associated with the thread
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBTM-2757
>                 URL: https://issues.jboss.org/browse/JBTM-2757
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>          Components: JTS
>    Affects Versions: 5.3.4.Final
>            Reporter: Ondra Chaloupka
>            Assignee: Ondra Chaloupka
>
> This issue came from Tom's investigation on JBTM-2756 (which came from static code analysis).
> This issue points to the fact that for ThreadAssoction#add [1] tx is used as a getKey but then it overwrites the transactions associated with the thread. This seems to be a bug and need more investigation.
> [1] https://github.com/jbosstm/narayana/blob/master/ArjunaJTS/jts/classes/com/arjuna/ats/jts/extensions/ThreadAssociations.java#L66 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbossts-issues mailing list