Commit Graph

10982 Commits

Author SHA1 Message Date
Justin Bertram defa911143 ARTEMIS-5028 use a default filter when none is specified for mngmnt ops
This is a small usability improvement for management whereby
invocations of some operations no longer require JSON boilerplate. It
impacts the following operations on the ActiveMQServerControl:

 - listConnections
 - listSessions
 - listAddresses
 - listQueues
 - listConsumers
 - listProducers
2024-09-05 12:04:41 -04:00
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
Justin Bertram 74691b8b61 ARTEMIS-5031 bump owasp.version from 10.0.3 to 10.0.4 2024-09-04 14:02:59 -05:00
Justin Bertram f302f47e88 ARTEMIS-5030 bump com.puppycrawl.tools:checkstyle from 10.18.0 to 10.18.1 2024-09-04 14:01:20 -05:00
Justin Bertram 8fb7573fab ARTEMIS-5029 bump jetty.version from 10.0.23 to 10.0.24 2024-09-04 13:59:35 -05:00
Robbie Gemmell 9133cdb466 ARTEMIS-4962: add test, clarify some related comments 2024-09-03 13:52:10 -05:00
Justin Bertram d929c5dd66 ARTEMIS-4962 mitigate NPE in FilterImpl 2024-09-03 13:52:10 -05:00
Gary Tully 57adcd3286 NO-JIRA sanity test of mqtt shared sub publish with fqqn 2024-09-03 10:44:25 -05:00
Justin Bertram 7605bd673f ARTEMIS-4915 clarify 'total' server metrics' descriptions 2024-09-03 12:13:14 +01:00
Domenico Francesco Bruscino bf9f9d2203 ARTEMIS-5026 Upgrade commons-compress to 1.27.1 2024-09-03 09:19:08 +01:00
Justin Bertram 306dfc9327 ARTEMIS-4957 remove unused variables in Redistributor 2024-09-02 14:53:14 +01:00
Justin Bertram 73f18535b5 ARTEMIS-4958 remove unused variable in AddressImpl 2024-09-02 13:00:34 +01:00
Justin Bertram ad02130560 ARTEMIS-4935 remove unused variable in ProcessBuilder.ProcessLogger 2024-09-02 12:52:20 +01:00
Justin Bertram 4c0a47924c 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
Justin Bertram 6a9f4bdb36 ARTEMIS-5024 bump org.apache.commons:commons-lang3 from 3.16.0 to 3.17.0 2024-08-30 18:42:06 -05:00
fogninid 9aa089b78b ARTEMIS-5013 do not override Netty leak detection
do not override the configured netty leak detection from client code.
Use the same logic as server, disabling the default only if no
properties are configured in the JVM.
See 127ce3a84a
2024-08-30 14:31:48 -05:00
Yashashree Chopada f9b912baf0 ARTEMIS-4972 Use Lock in start() for Binding Variables 2024-08-30 10:39:03 -05:00
Clebert Suconic ffafbf350a ARTEMIS-5001 Relax consistency requirement on OperationContext for Mirror send operations.
Send operations should ignore replication, while the ack of the message should wait a round trip in replication.
That will allow us to ack the message faster and still have consistency with its replica.
2024-08-29 14:42:48 -04:00
Robbie Gemmell 2b9b81142b ARTEMIS-5022: update selenium to 4.24.0 2024-08-29 18:04:51 +01:00
Robbie Gemmell bca97dc706 ARTEMIS-5021: update mockito to 5.13.0 2024-08-29 18:01:34 +01:00
Robbie Gemmell 9cd31dd877 ARTEMIS-5020: update maven-pmd-plugin to 3.25.0 2024-08-29 13:03:31 +01:00
Robbie Gemmell eb5049f5a0 ARTEMIS-5019: update error-prone to 2.31.0 2024-08-29 13:03:08 +01:00
Justin Bertram d0c83af40e ARTEMIS-5017 bridge leaks ClientSessionFactory instance on reconnect attempt 2024-08-28 19:39:00 -04:00
Clebert Suconic 898c09cb93 ARTEMIS-5010 just a better description on a log.warn 2024-08-28 18:59:05 -04:00
Justin Bertram 465e985388 ARTEMIS-5018 eliminate deprecated use of Class.newInstance 2024-08-28 17:30:19 -04:00
Clebert Suconic 4352ebae5f ARTEMIS-5010 Addressing comments from PR https://github.com/apache/activemq-artemis/pull/5186 2024-08-28 14:08:49 -04:00
Clebert Suconic 4ba9f67d80 ARTEMIS-5010 AckManager records are not replicated 2024-08-28 11:53:16 -04:00
Justin Bertram 8a56d2ea33 ARTEMIS-4906 CentOS 7 is EOL so remove Docker file 2024-08-28 16:05:48 +01:00
Justin Bertram f3bcab88dc ARTEMIS-5012 update docs & code to clarify resource-limit-settings 2024-08-28 06:57:19 -07:00
Justin Bertram ca66de4bde ARTEMIS-4834 support consuming messages forever with CLI 2024-08-28 11:47:29 +02:00
Timothy Bish 18e6f1a88d ARTEMIS-5007 Ensure mirror connection recovers from manual closures
If a user for some reason force closes the local mirror connection SNF
consumer or the actual connection but hasn't stopped the broker connection
itself the connection should recover and rebuild. The fix ensures that if
local connections are closed first then local session resources get freed.
2024-08-27 16:20:18 +01:00
Justin Bertram 13482519be ARTEMIS-5015 bump io.netty:netty-tcnative-boringssl-static from 2.0.65.Final to 2.0.66.Final 2024-08-26 16:26:04 -05:00
Justin Bertram 18e5d9a727 ARTEMIS-5014 bump com.puppycrawl.tools:checkstyle from 10.17.0 to 10.18.0 2024-08-26 16:25:21 -05:00
Clebert Suconic 38693370c9 Revert "ARTEMIS-5001 Option to relax sync on journal replication for Mirroring"
This reverts commit d41f01a5aa.
2024-08-26 12:49:42 -04:00
Robbie Gemmell ccbfa5e6e5 ARTEMIS-5011: update to postgresql 42.7.4 2024-08-26 16:46:42 +01:00
Justin Bertram 2883534152 ARTEMIS-5009 bump com.google.guava:guava from 33.2.1-jre to 33.3.0-jre 2024-08-22 14:17:09 -05:00
Justin Bertram a3bc210ca0 ARTEMIS-5008 Bump commons-logging:commons-logging from 1.3.3 to 1.3.4 2024-08-22 14:12:44 -05:00
Justin Bertram 567af46583 ARTEMIS-4999 bump plugin.components.maven.version from 3.9.8 to 3.9.9 2024-08-22 13:53:37 -05:00
Timothy Bish b58191bd52 ARTEMIS-5004 Clean up federation address consumer bindings proactively
When an address consumer explicitly closes or is closed we should remove the
address binding for that consumer right away instead of waiting for possible
configured auto delete as the demand is gone and we don't need to binding to
stick around any longer.
2024-08-21 17:04:18 +01:00
Robbie Gemmell 84f4d73f2f ARTEMIS-5005: update jetty to 10.0.23 2024-08-21 16:15:12 +01:00
Justin Bertram 18999a83bf ARTEMIS-5000 stop running most STOMP tests twice 2024-08-21 10:25:43 +01:00
Clebert Suconic ac666f3ab1 NO-JIRA Fixing typo on porOffset -> portOffset 2024-08-20 16:03:57 -04:00
Clebert Suconic d41f01a5aa ARTEMIS-5001 Option to relax sync on journal replication for Mirroring
Say you use Mirroring and journal replication combined.

The target will wait a round trip on replica before sends are done.
It is possible to ignore that rountrip now with an option added into Configuration#mirrorReplicaSync
2024-08-20 16:03:57 -04:00
Clebert Suconic 534526511f ARTEMIS-5003 User friendly error message in case profile file does not exist 2024-08-20 16:03:57 -04:00
Timothy Bish c932b75de6 ARTEMIS-4998 Fix Federation link close wrongly closing the connection
The federation sender links can react incorrectly when the source broker
closes a receiver because the demand is gone and they can result in the
remote broker closing its side of the connection causing the whole federation
to need to be rebuilt. Handle the closure events correctly to prevent an
unexpected close and rebuild.
2024-08-20 11:16:16 +01:00
Howard Gao c395db526c NO-JIRA Fix AnycastTest.testTxCommitReceive random failure 2024-08-20 11:15:47 +01:00
Robbie Gemmell 87cc15700f ARTEMIS-4996: update to junit 5.11.0
Move parameters out of base classes where needed to avoid clashes with
subclasses [re-]defining their own params. Needed due to change of
field + method annotation search handling to adopt Java hiding/shadowing
semantics, leading to ParameterizedTestExtension discovering both parent
and subclass parameter definition methods and throwing.
2024-08-19 11:51:39 +01:00
Robbie Gemmell 11611d091c ARTEMIS-4995: update to jgroups 5.3.11 2024-08-16 17:48:01 +01:00
Clebert Suconic c042fb9e13 [maven-release-plugin] prepare for next development iteration 2024-08-16 10:23:18 -04:00
Clebert Suconic 0ec68a93d3 [maven-release-plugin] prepare release 2.37.0 2024-08-16 10:23:17 -04:00