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

Ondra Chaloupka (JIRA) issues at jboss.org
Tue Sep 20 09:47:00 EDT 2016


Ondra Chaloupka created JBTM-2757:
-------------------------------------

             Summary: 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: Tom Jenkinson


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
(v6.4.11#64026)



More information about the jbossts-issues mailing list