Commit Graph

1274 Commits

Author SHA1 Message Date
Jean-Baptiste Onofré 4a25366541 [maven-release-plugin] prepare release activemq-5.17.6 2023-10-25 07:25:09 +02:00
Matt Pavlovich 048d980923 [AMQ-9315] Add connectedTimestamp to Connection and JMX view
(cherry picked from commit 578d86d726)
2023-10-24 08:52:10 -05:00
Martin Devlin d069ff77bd AMQ-9187 - Queue Advisory message not sent
- a test case which demonstrates the bug.
  - the first test case sendDelayedMessage_usingNormalProducer works fine because it is using a normal named JMS MessageProducer. Included just for comparison purposes.
  - the 2nd test case sendDelayedMessage_usingAnonymousProducer shows the bug.
- the bug fix: swap the order of the AdvisoryBroker and SchedulerBroker BrokerFilters.
  - make AdvisoryBroker come after SchedulerBroker but before RegionBroker
  - this ensures that when a delayed message gets eventually forwarded to the RegionBroker, the RegionBroker will "see" the AdvisoryBroker when it invokes 'addDestination'. Thus, the AdvisoryBroker gets to send out the advisory message as expected.

(cherry picked from commit 573ae71ec9)
2023-10-20 17:56:21 +02:00
Christopher L. Shannon (cshannon) 8204181db2 AMQ-9343 - Reduce memory used for in flight transactions
This commit will reduce the memory required in KahaDB for long running
transactions and transactions with a lot of pending message sends by
clearing out the message memory when no longer needed instead of keeping
it tracked in the pending map

(cherry picked from commit a26bf256d1)
2023-10-18 11:51:49 -04:00
Jean-Baptiste Onofré 53f2b4a0cb [maven-release-plugin] prepare for next development iteration 2023-06-28 13:12:31 +02:00
Jean-Baptiste Onofré de102ea21d [maven-release-plugin] prepare release activemq-5.17.5 2023-06-28 13:12:20 +02:00
Matt Pavlovich cda1007ef6 [AMQ-9257] Disabled expire message checking when pauseDispatch=true (#1005)
(cherry picked from commit 9a5b61f6a2)
2023-06-08 08:25:03 -05:00
Christopher L. Shannon 1707cc194b AMQ-9262 - Fix network subscriptions for composite consumers (#1014)
This fixes network subscriptions that are generated on demand when a
consumer uses composite destinations. Before this fix conduit
subscriptions didn't work correctly. This fix now splits up the
composite dest and generates correct demand for each of the individual
destinations.

(cherry picked from commit 901956d4dd)
2023-06-07 07:20:43 -04:00
Jean-Baptiste Onofré ebab05897a [maven-release-plugin] prepare for next development iteration 2023-02-22 06:36:53 +01:00
Jean-Baptiste Onofré 720570e967 [maven-release-plugin] prepare release activemq-5.17.4 2023-02-22 06:36:43 +01:00
Matt Pavlovich 47962eea25 [AMQ-9217] Fix per-destination audits on IndividualDeadLetterStrategy
(cherry picked from commit 28f7eb7ee8)
2023-02-16 11:00:27 -05:00
Matt Pavlovich 48c73d9638 [AMQ-9207] Upgrade various dependencies (#964)
com.thoughtworks.xstream:xstream .................... 1.4.19 -> 1.4.20
commons-daemon:commons-daemon ......................... 1.3.2 -> 1.3.3
org.apache.ant:ant ................................ 1.10.12 -> 1.10.13
org.apache.shiro:shiro-core ......................... 1.10.1 -> 1.11.0
org.apache.shiro:shiro-spring ....................... 1.10.1 -> 1.11.0
org.codehaus.jettison:jettison ........................ 1.5.2 -> 1.5.3
regexp:regexp ............................................. 1.3 -> 1.5
org.apache.httpcomponents:httpclient ................ 4.5.13 -> 4.5.14
org.apache.httpcomponents:httpcore .................. 4.4.15 -> 4.4.16

- regexp/regexp -> jakarta-regexp/jakarta/regexp

(cherry picked from commit 34454567c8)
2023-02-04 06:14:57 +01:00
Christopher L. Shannon (cshannon) 5e12551a4a AMQ-9193 - Improve broker shutdown in unit tests
This should improve test reliability for the unit tests so brokers don't
hang around after the end of a test on error. Also increase the surefire
re-run count to 3 times before failing.

(cherry picked from commit a083ff4d23)
2023-01-11 06:23:05 -05:00
Christopher L. Shannon (cshannon) 4ac6065ace AMQ-9192 - Fix flaky AdvisoryTests
Properly shutdown broker for each test and speed up tests by sending
less messages

(cherry picked from commit 044f5346e9)
2023-01-10 15:31:01 -05:00
Jean-Baptiste Onofré 5926eee624 [maven-release-plugin] prepare for next development iteration 2022-11-29 14:49:59 +01:00
Jean-Baptiste Onofré 80a5ee343f [maven-release-plugin] prepare release activemq-5.17.3 2022-11-29 14:49:50 +01:00
Endre Stølsvik 2de859f758 AMQ-8617: RedeliveryPolicy:Exponential Backoff + NonBlockingRedelivery = too long delays
(cherry picked from commit 393a696955)

Scenario on client:

1. Employing RedeliveryPolicy with exponential backoff (keeping maximum
redeliveries at default 6)
2. Enabled non-blocking redelivery
3. Receiving e.g. 100 consecutive poison messages (which eventually
should DLQ after max redeliveries)

This will result in massive redelivery delays due to a logic bug.

The reason is that redeliveryDelay is a field variable kept on the
ActiveMQMessageConsumer, instead of being a property on the message - or
that the redelivery delay was calculated per message based on the
redelivery count.

When consecutive messages rollbacks multiple times, the redeliveryDelay
field is continuously multiplied by the backoff multiplier, resulting in
enormous delays.

Fix: Ditch the field variable, instead calculating the redeliveryDelay
per delivery from the redelivery count. (This happens to be identical to
how it is done in afterRollback() in ActiveMQSession:1004.)

Test is added - which fails with the previous code, and passes with
this. Added a debug log line for the calculated delay.
2022-11-22 08:56:09 +01:00
Christopher L. Shannon (cshannon) 20dc305a49 AMQ-9175 - Properly set broker on ConnectionContext inside
MemoryTransactionStores

This fixes a NPE when using the messageDelivered advisory and
transactions

(cherry picked from commit f83c5f1ba1)
2022-11-21 11:12:07 -05:00
Christopher L. Shannon (cshannon) 29dcd3f8bf AMQ-9159 - Add a test case to verify inflight message stats for wildcard
consumer when a destination is removed

(cherry picked from commit f6e26085cf)
2022-11-17 09:11:38 -05:00
Christopher L. Shannon (cshannon) 27e16b1d48 NO-JIRA: Add timeout for flaky test
(cherry picked from commit b6540746a2)
2022-11-16 13:22:26 -05:00
Christopher L. Shannon (cshannon) f90a7bf535 AMQ-9168 - Send message expired advisory and not discard advisory when
Topic subscriptions expire a message

This fixes topic subs to send the right advisory type, if enabled, when
the server discards a message on dispatch to a topic sub. Also add some
more expiration tests for other subscription types

(cherry picked from commit 757a712890)
2022-11-16 06:47:17 -05:00
Matt Pavlovich d830dc2954 [AMQ-9163] Add 'Started' attribute to ConnectorView (#932)
(cherry picked from commit c25975389f)
2022-11-15 10:18:06 +01:00
Christopher L. Shannon 9a298e6caa Increase forkedProcessTimeoutInSeconds for tests to decrease timeout failures (#930)
(cherry picked from commit f473efe163)
2022-11-11 05:49:40 -05:00
Christopher L. Shannon (cshannon) 3047807763 AMQ-9152: Make test classes abstract to fix surefire plugin
(cherry picked from commit ea10d984d0)
2022-11-03 15:48:28 -04:00
Christopher L. Shannon (cshannon) 81773c85d7 AMQ-9152: Fix surefire setup to run all tests that are not excluded
(cherry picked from commit ba0b7a25a0)
2022-11-03 15:48:18 -04:00
Christopher L. Shannon (cshannon) 9c5a6219ea AMQ-9156 - Make sure in flight metrics are properly decremented on
subscription destroys and dispatch failures

(cherry picked from commit 58666afffd)
2022-11-03 10:42:45 -04:00
Christopher L. Shannon (cshannon) 8cc7a45455 AMQ-9107 - rework performance improvement for consumer closing in
managed region broker

This new approach just looks matching Subscriptions from the region for the
destination which prevents having to store another map and falls back to
the old approach if something went wrong.

(cherry picked from commit d46b74d674)
2022-11-03 06:50:44 -04:00
Christopher L. Shannon (cshannon) bc9e728123 AMQ-9153: Fix slow consumer advisory for queue subscriptions
Due to changes with Queues to check if consumers are full before adding
more messages to the subscription, the Queue dispatch logic needed to be
updated to mark subscriptions as slow and send advisories if configured
instead of relying on the subscription itself to do it.

(cherry picked from commit 596ee31687)
2022-11-01 10:31:50 -04:00
Lucas Tétreault fb89765fdf Add a test for offline durable subscriptions for AMQ-9107
(cherry picked from commit 98b7d3443c)
2022-11-01 07:06:41 +01:00
Robbie Gemmell aad85e2c4a AMQ-9074: use -noindex to remove various .js files, disable html source listings for javadoc
(cherry picked from commit 52574a794a)
2022-09-07 18:04:01 -04:00
Jean-Baptiste Onofré cad3839fe1 [maven-release-plugin] prepare for next development iteration 2022-08-25 09:22:35 +02:00
Jean-Baptiste Onofré b6ecffe80a [maven-release-plugin] prepare release activemq-5.17.2 2022-08-25 09:22:27 +02:00
Jean-Baptiste Onofré f9678aa3e0 Add missing ASF header 2022-08-24 09:39:02 +02:00
Matt Pavlovich b70b2960a4 [AMQ-8981] Fix CustomBridgeFactoryTest
(cherry picked from commit 82a2374764)
2022-08-23 07:13:54 +02:00
Jean-Baptiste Onofré f23eb49c6f [AMQ-9030] Upgrade to maven-antrun-plugin 3.0.0
(cherry picked from commit fb3dea3656)
2022-08-18 07:16:39 +02:00
Enrico Olivelli 8d9fdd3b07 AMQ-8613 Improve performance of selectors with a big sequence of OR and AND logical expressions
(cherry picked from commit 4b08978062)
2022-08-17 07:47:29 +02:00
Lucas Tétreault c44008e852 [AMQ-9005] remove xalan dependency due to it being end of life
(cherry picked from commit e550748b4c)
2022-08-01 06:39:51 +02:00
Jean-Baptiste Onofré 8abb50aa16 [maven-release-plugin] prepare for next development iteration 2022-04-25 14:23:42 +02:00
Jean-Baptiste Onofré 0898aab016 [maven-release-plugin] prepare release activemq-5.17.1 2022-04-25 14:23:33 +02:00
Jean-Baptiste Onofré c44bf3c5f7 Fix OfflineDurableSubscriberTimeoutTest on some machine (including Jenkins)
(cherry picked from commit ffab5274a4)
2022-04-06 07:45:03 +02:00
Christopher L. Shannon aa10747e94 AMQ-8550 - Check for null keystore/truststore passwords
Inside ActiveMQSslConnectionFactory the passwords should be checked for
null so a NPE isn't thrown. Null will be passed to the factories instead
and the keystore/truststore factories will try and load the keystores
using null for the password which may or may not work depending on the
implementation and if password is set.

(cherry picked from commit b93d58259c)
2022-04-05 13:41:54 -04:00
Jean-Baptiste Onofré bd08484445 [maven-release-plugin] prepare for next development iteration 2022-03-09 21:47:58 +01:00
Jean-Baptiste Onofré 1f3ccad9bb [maven-release-plugin] prepare release activemq-5.17.0 2022-03-09 21:47:47 +01:00
Jean-Baptiste Onofré a9cb53bd38 Cancel 5.17.0 release 2022-03-09 21:42:04 +01:00
Christopher L. Shannon (cshannon) 482a5e819d AMQ-8530 - Update to geronimo-annotation_1.3_spec
(cherry picked from commit 3d06efe93d)
2022-03-09 12:54:31 -05:00
Christopher L. Shannon f25ff1bca2 AMQ-8528: Fix test failures in integration module
-DurableFiveBrokerNetworkBridgeTest: Fix refactoring mistake
-SpringTest: Fix Spring xml files
-BrokerRedeliveryTest: Fix after sendDuplicateFromStoreToDLQ default
changed to false
-AMQ4952Test: Fix after sendDuplicateFromStoreToDLQ default
changed to false
-AMQ3537Test: Add missing package to SERIALIZABLE_PACKAGES
-OfflineDurableSubscriberTimeoutTest: Fix after log4j2 update
-JDBCConcurrentDLQTest: Fix after log4j2 update

(cherry picked from commit 32e72b0879)
2022-03-08 13:33:37 -05:00
Christopher L. Shannon 15a2f3de2c NO-JIRA: Activate quick-tests by default (#792)
(cherry picked from commit c4d9d70987)
2022-03-08 13:23:41 -05:00
Jean-Baptiste Onofré 2582384511 [maven-release-plugin] prepare for next development iteration 2022-03-07 15:41:59 +01:00
Jean-Baptiste Onofré 8ad238bb7d [maven-release-plugin] prepare release activemq-5.17.0 2022-03-07 15:41:49 +01:00
Christopher L. Shannon (cshannon) b31cc6f2cb AMQ-7309: Compilation fixes after revert of JMS 2.0 api change 2022-03-03 16:58:17 -05:00