[
https://issues.jboss.org/browse/JBTM-3194?page=com.atlassian.jira.plugin....
]
Thomas Jenkinson updated JBTM-3194:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
JDBC ConnectionManager has deadlock potential
---------------------------------------------
Key: JBTM-3194
URL:
https://issues.jboss.org/browse/JBTM-3194
Project: JBoss Transaction Manager
Issue Type: Bug
Components: Transactional Driver
Reporter: Thomas Jenkinson
Assignee: Thomas Jenkinson
Priority: Major
Fix For: 5.next
{code}
"Thread-461" #484 prio=5 os_prio=0 cpu=1.84ms elapsed=131863.84s
tid=0x00007fc2f0e0e000 nid=0x420a waiting for monitor entry [0x00007fbf99de0000]
java.lang.Thread.State: BLOCKED (on object monitor)
at com.arjuna.ats.internal.jdbc.ConnectionManager.release(ConnectionManager.java)
- waiting to lock <0x0000000083000ca0> (a java.lang.Class for
com.arjuna.ats.internal.jdbc.ConnectionManager)
at com.arjuna.ats.internal.jdbc.ConnectionImple.closeImpl(ConnectionImple.java:360)
at com.arjuna.ats.internal.jdbc.ConnectionImple.close(ConnectionImple.java:323)
at com.hp.mwtests.ts.jdbc.basic.PoolingTest$1.afterCompletion(PoolingTest.java:129)
at
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96)
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:545)
- locked <0x000000008355f318> (a java.lang.Object)
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:101)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1287)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)
at com.hp.mwtests.ts.jdbc.basic.PoolingTest.lambda$test$0(PoolingTest.java:135)
at com.hp.mwtests.ts.jdbc.basic.PoolingTest$$Lambda$70/0x0000000100147040.run(Unknown
Source)
at java.lang.Thread.run(java.base@11/Thread.java:834)
"Thread-462" #485 prio=5 os_prio=0 cpu=3.72ms elapsed=131863.84s
tid=0x00007fc2f0e10800 nid=0x420b in Object.wait() [0x00007fbf99bde000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(java.base@11/Native Method)
- waiting on <0x00000000831d5830> (a java.util.HashSet)
at java.lang.Object.wait(java.base@11/Object.java:328)
at com.arjuna.ats.internal.jdbc.ConnectionManager.create(ConnectionManager.java:134)
- waiting to re-lock in wait() <0x00000000831d5830> (a java.util.HashSet)
- locked <0x0000000083000ca0> (a java.lang.Class for
com.arjuna.ats.internal.jdbc.ConnectionManager)
at com.arjuna.ats.jdbc.TransactionalDriver.connect(TransactionalDriver.java:89)
at java.sql.DriverManager.getConnection(java.sql@11/DriverManager.java:677)
at java.sql.DriverManager.getConnection(java.sql@11/DriverManager.java:189)
at com.hp.mwtests.ts.jdbc.basic.PoolingTest$1.beforeCompletion(PoolingTest.java:119)
at
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:360)
- locked <0x00000000835638e0> (a java.lang.Object)
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1287)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)
at com.hp.mwtests.ts.jdbc.basic.PoolingTest.lambda$test$0(PoolingTest.java:135)
at com.hp.mwtests.ts.jdbc.basic.PoolingTest$$Lambda$70/0x0000000100147040.run(Unknown
Source)
at java.lang.Thread.run(java.base@11/Thread.java:834)
{code}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)