activemq-artemis/tests
Clebert Suconic 7fb9aa5f97 ARTEMIS-5010 Addressing deadlock on AckManager
AckManager.flush would hold a lock on ackManager, There was a possible deadlock with MirrorTarget:

Thread 1:

        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager.addRetry(AckManager.java:393)
        - waiting to lock <0x00000007990a13e8> (a org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager.ack(AckManager.java:418)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.performAck(AMQPMirrorControllerTarget.java:479)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.postAcknowledge(AMQPMirrorControllerTarget.java:461)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.actualDelivery(AMQPMirrorControllerTarget.java:318)
        at org.apache.activemq.artemis.protocol.amqp.proton.ProtonAbstractReceiver.onMessageComplete(ProtonAbstractReceiver.java:361)

Thread 2:

        at jdk.internal.misc.Unsafe.park(java.base@11.0.8/Native Method)
        - parking to wait for  <0x000000079de0af38> (a java.util.concurrent.CountDownLatch$Sync)
        at java.util.concurrent.locks.LockSupport.parkNanos(java.base@11.0.8/LockSupport.java:234)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(java.base@11.0.8/AbstractQueuedSynchronizer.java:1079)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(java.base@11.0.8/AbstractQueuedSynchronizer.java:1369)
        at java.util.concurrent.CountDownLatch.await(java.base@11.0.8/CountDownLatch.java:278)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AMQPMirrorControllerTarget.flush(AMQPMirrorControllerTarget.java:230)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager$$Lambda$601/0x00000008005c3040.accept(Unknown Source)
        at java.lang.Iterable.forEach(java.base@11.0.8/Iterable.java:75)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager.flushMirrorTargets(AckManager.java:184)
        - locked <0x00000007990a13e8> (a org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager)
        at org.apache.activemq.artemis.protocol.amqp.connect.mirror.AckManager.initRetry(AckManager.java:162)
2024-09-04 16:19:52 -04:00
..
activemq5-unit-tests ARTEMIS-5018 eliminate deprecated use of Class.newInstance 2024-08-28 17:30:19 -04:00
artemis-test-support ARTEMIS-5010 AckManager records are not replicated 2024-08-28 11:53:16 -04:00
compatibility-tests ARTEMIS-5025 bump org.jboss.marshalling:jboss-marshalling-river from 2.1.4.Final to 2.2.0.Final 2024-08-30 18:44:26 -05:00
config NO-JIRA proposed log4j commented out log configuration for testing 2024-02-07 15:20:57 -06:00
db-tests ARTEMIS-5001 Relax consistency requirement on OperationContext for Mirror send operations. 2024-08-29 14:42:48 -04:00
e2e-tests ARTEMIS-5018 eliminate deprecated use of Class.newInstance 2024-08-28 17:30:19 -04:00
integration-tests NO-JIRA sanity test of mqtt shared sub publish with fqqn 2024-09-03 10:44:25 -05:00
integration-tests-isolated [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
jms-tests ARTEMIS-5018 eliminate deprecated use of Class.newInstance 2024-08-28 17:30:19 -04:00
joram-tests ARTEMIS-5018 eliminate deprecated use of Class.newInstance 2024-08-28 17:30:19 -04:00
karaf-client-integration-tests [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
karaf-server-integration-tests [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
leak-tests [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
performance-jmh [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
performance-tests [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
security-resources ARTEMIS-4697 Auto reload SSL PEM config sources on change 2024-03-25 14:26:42 +01:00
smoke-tests ARTEMIS-5001 Relax consistency requirement on OperationContext for Mirror send operations. 2024-08-29 14:42:48 -04:00
soak-tests ARTEMIS-5010 Addressing deadlock on AckManager 2024-09-04 16:19:52 -04:00
stress-tests [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
timing-tests [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
unit-tests ARTEMIS-5018 eliminate deprecated use of Class.newInstance 2024-08-28 17:30:19 -04:00
pom.xml [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00