[
https://jira.jboss.org/jira/browse/JBTM-328?page=com.atlassian.jira.plugi...
]
Pavel Kadlec commented on JBTM-328:
-----------------------------------
I try to remeber on that issue. I think that I meant it in the way that those two lines
are not synchronized together in the following way
synchronized (lock) {
Xid xid = txIdMappings.get(externalTxId);
if(xid == null) {
cxid = createMappings(externalTxId);
}
}
Two threads can together receive null for the same externalTxId and both threads can
create mappings. I thought this is not correct behaviour.
Synchronization bug in org.jboss.txbridge.TxBridgeManager
---------------------------------------------------------
Key: JBTM-328
URL:
https://jira.jboss.org/jira/browse/JBTM-328
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: XTS
Environment: JBoss-4.2.1.GA, JBossTS-4.2.3.SP7
Reporter: Pavel Kadlec
Assignee: Jonathan Halliday
Fix For: 4.7.0
Method org.jboss.txbridge.TxBridgeManager.getInboundBridge() should be synchronized,
there should at least synchronization of following code is necessary
Xid xid = txIdMappings.get(externalTxId);
if(xid == null) {
xid = createMappings(externalTxId);
}
--
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