11219 Commits

Author SHA1 Message Date
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 activemq-5.17.4 2023-02-22 06:36:43 +01:00
Jean-Baptiste Onofré
90eb34727f Upgrade schema in preparation for 5.17.4 release 2023-02-22 06:31:16 +01:00
Christopher L. Shannon (cshannon)
50943caa6e AMQ-9217 - Fix IndividualDeadLetter strategy rollback
This fixes the rollback after the latest changes by using the
originalDestination property to look up the correct message audit on
rollback

(cherry picked from commit 459388185a3acd3a175d304b08af3c638e870292)
2023-02-16 11:00:33 -05:00
Matt Pavlovich
47962eea25 [AMQ-9217] Fix per-destination audits on IndividualDeadLetterStrategy
(cherry picked from commit 28f7eb7ee87c47e43cc3db11fcd550ef872327b3)
2023-02-16 11:00:27 -05:00
Jean-Baptiste Onofré
b7925d8437 Update copyright to include 2023 2023-02-11 07:28:35 +01:00
JB Onofré
06354186b4 [AMQ-9197] Upgrade to prototype.js 1.7.3
(cherry picked from commit c425618a07046432af2c5ecce6fcddf64f206ca6)
2023-02-08 17:22:07 +01:00
Matt Pavlovich
a976830e10 [AMQ-9205] Upgrade to Jackson 2.14.2 (#962)
(cherry picked from commit 97bfc673324ae594076eb7c16e964069d488590d)
2023-02-06 21:48:14 +01:00
Jean-Baptiste Onofré
c11a92a852 [AMQ-9185] Define jolokia.conf system property in the wrapper
(cherry picked from commit ed0177e445f7c5b75e4aa54f02de0f5757d8ab57)
2023-02-05 07:33:28 +01:00
Matt Pavlovich
a8bf0ae69a [AMQ-9204] Upgrade to jetty 9.4.50.v20221201 (#961)
(cherry picked from commit 2a119d32e5661db7f177e18fc5d4040b5b9a1d0a)
2023-02-04 07:15:41 +01: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 34454567c813def45c965b9143b24fe7f4fb5117)
2023-02-04 06:14:57 +01:00
Michał Janczykowski
b1f5d6beb3 [AMQ-9199] reordered imports
(cherry picked from commit 13ec5d5b7ace619e84ff2982da9e80091bb64e66)
2023-02-02 14:44:54 +01:00
Michał Janczykowski
c5ecf53bdc [AMQ-9199] Fixed race condition in creating store directory
A store directory is created by MessageDatabase#getPageFile which
is called in two cases:
1. KahaDBStore.start() when creating a queue
2. KahaDBStore.size() which is performed when sending any persistent message

If both methods are called concurrently it's possible to get an IOException
thrown from the IOHelper.mkdirs method.

(cherry picked from commit 7de7ba2aa92dd1a98f48175fac5a538bd6e8579b)
2023-02-02 14:44:33 +01:00
Matt Pavlovich
ce7782a06f [AMQ-9206] Upgrade to Spring 5.3.25
(cherry picked from 0f5e5e633719a2fb730f4f80802230e4f840a61a)
2023-02-02 14:42:11 +01:00
Christopher L. Shannon (cshannon)
6d91d71c1a AMQ-9202 - Make sure Reentrant locks are acquired outside a try block
This is best practice and will prevent unlock from being attempted
inside of a finally block when the thread doesn't actually own the
lock which can happen when the lock attempt throws an exception
such as calling lockInterruptibly()

(cherry picked from commit ed924cddac90b96bdc47b215852a68155d818bcd)
2023-02-01 11:33:14 -05:00
Christopher L. Shannon (cshannon)
bf65929fdc AMQ-9201 - Update Jolokia default access configuration
(cherry picked from commit 6120169e563b55323352431dfe9ac67a8b4de6c2)
2023-02-01 07:25:59 -05: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 a083ff4d23e9ea0997efa5aa596ed5f1c3c6ee24)
2023-01-11 06:23:05 -05:00
Christopher L. Shannon (cshannon)
164568aab4 NO-JIRA - Set tests to rerun failing tests 2 times
This should help reduce failures from flaky tests and make the build
more reliable

(cherry picked from commit 1b9bd133fd2fe87a4779b7483a339a4fe6dd8c9f)
2023-01-10 16:24:16 -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 044f5346e93d9b133fcecccb6000d16967aa0f1e)
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 activemq-5.17.3 2022-11-29 14:49:50 +01:00
Jean-Baptiste Onofré
de44ca68aa [AMQ-9176] Upgrade to Apache POM 28
(cherry picked from commit 43c7c7c227e578d599ba1deed3ba1826cdd384cb)
2022-11-29 14:02:06 +01:00
Jean-Baptiste Onofré
982b5d7792 Update spring.schemas in preparation for 5.17.3 release 2022-11-29 08:04:25 +01:00
Dmytro Chebotarskyi
c35687052a Added additional logging on BrokerService startup
(cherry picked from commit dc55028c00fcb8a4574b7c390d19f85220c1edfe)
2022-11-29 08:02:52 +01:00
Jean-Baptiste Onofré
3f6ffd30d2 [AMQ-9126] Set jolokia.conf sys prop and escape cleanly on Windows platform
(cherry picked from commit 49626f07b67c09914d4b70548da6e198bd0de1e0)
2022-11-29 07:42:27 +01:00
Jean-Baptiste Onofré
60e79ed3d5 [AMQ-9102] Add http.nonProxyHost support in HTTP transport
(cherry picked from commit 44a5539afc689f23c63a0d2e1786b48c0e52f3c3)
2022-11-25 18:25:10 +01:00
Jean-Baptiste Onofré
b5126f6e7b [AMQ-9062] Fix Web-ContextPath with Pax Web 8.0.x
(cherry picked from commit c563f6e35572d0d4a0b268190c1600c9e2441b62)
2022-11-22 08:58:55 +01:00
Endre Stølsvik
2de859f758 AMQ-8617: RedeliveryPolicy:Exponential Backoff + NonBlockingRedelivery = too long delays
(cherry picked from commit 393a696955cbf97b90576e4a85b3ce1a02268ad7)

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 f83c5f1ba156ed850acf76dc42f944b4150d21f8)
2022-11-21 11:12:07 -05:00
Jean-Baptiste Onofré
e31a168aa7 [AMQ-9174] Upgrade to groovy 4.0.6
(cherry picked from commit 1228fc4421b615f58d9c492ecba231545704d2c9)
2022-11-21 14:20:22 +01:00
Jean-Baptiste Onofré
91d6ddd1aa [AMQ-9172] Upgrade to jettison 1.5.2
(cherry picked from commit c79b71c2e7d68ebc67c230de8f966220297b5e40)
2022-11-21 09:36:11 +01:00
Jean-Baptiste Onofré
8408595fc8 [AMQ-9171] Upgrade to shiro 1.10.1
(cherry picked from commit 42e1bf7467a22657026759a7a4efe414e6f59660)
2022-11-20 17:11:27 +01:00
Jean-Baptiste Onofré
b00655efb2 [AMQ-9131] Upgrade to xbean 4.22
(cherry picked from commit 421a2dedbfc13325068adff20c259f5fe165be14)
2022-11-20 07:18:50 +01:00
Jean-Baptiste Onofré
61100f2e8c [AMQ-9164] Upgrade to jackson 2.14.0
(cherry picked from commit a562b994319381cf0657db72fbe8c79b2a559c50)
2022-11-18 11:15:29 +01: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 f6e26085cfa3693b2872b1c53354c674c0cbca49)
2022-11-17 09:11:38 -05:00
Jean-Baptiste Onofré
f81a80f3ed [AMQ-9120] Upgrade to shiro 1.10.0
(cherry picked from commit f93c0ec4eecd6c3c546c04c0dc0c29cd3360761b)
2022-11-17 05:04:33 +01:00
Christopher L. Shannon (cshannon)
27e16b1d48 NO-JIRA: Add timeout for flaky test
(cherry picked from commit b6540746a23f6b8d96279392551c3b50626f02d8)
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 757a712890996d71cf380c56fc2cefbd5a82ec88)
2022-11-16 06:47:17 -05:00
Christopher L. Shannon (cshannon)
46cdecf05f (AMQ-9156, AMQ-9167) - Update TopicSubscription to use a new counter for
current dispatched count

The previous way of computing the count of using total dispatched minus
total dequeued didn't work in the case of destination removal and
messages were not acked. The counter is needed as the dispatched list is
optional unlike prefetch subs.

(cherry picked from commit 8554a1464c6471f81ebbcd6c482376ae32cf6808)
2022-11-15 17:02:11 -05:00
Matt Pavlovich
31b6a03e8b [AMQ-9113] Upgrade to Jetty 9.4.49.v20220914
(cherry picked from commit 3de38130edbde6731cf6b7e12efa44929bdef0d9)
2022-11-15 14:19:25 +01:00
Matt Pavlovich
d830dc2954 [AMQ-9163] Add 'Started' attribute to ConnectorView (#932)
(cherry picked from commit c25975389f031a787414b404c848a4757f7180e5)
2022-11-15 10:18:06 +01:00
Jonathan Gallimore
e391298b50 Update XJC plugin to 3.3.2
(cherry picked from commit 731ca3694a81b1c99d00d521c874f99378410387)
2022-11-13 06:32:51 +01:00
Christopher L. Shannon
9a298e6caa Increase forkedProcessTimeoutInSeconds for tests to decrease timeout failures (#930)
(cherry picked from commit f473efe163e23bb289c89f12c1f8856e6e8ff83c)
2022-11-11 05:49:40 -05:00
Christopher L. Shannon (cshannon)
8062423dcd AMQ-9159 - In topic subscriptions only remove nodes from dispatched list if
they match the destination on destination removal

(cherry picked from commit 837df23be66f9d22e4df61ae40cd70de34e064a7)
2022-11-10 16:18:28 -05:00
Christopher L. Shannon (cshannon)
3047807763 AMQ-9152: Make test classes abstract to fix surefire plugin
(cherry picked from commit ea10d984d01c665ca1883cfcc38a66719f997596)
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 ba0b7a25a0fb8d225147748f28f69ba5abee01b5)
2022-11-03 15:48:18 -04:00
Christopher L. Shannon (cshannon)
3bd099f469 AMQ-9156 - fix formatting 2022-11-03 10:44:26 -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 58666afffde7eb43509d155e709e76e6fdba8084)
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 d46b74d674c2a67193bb95384290da266adf9a25)
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 596ee316874894ad0342475d8f242913bd507cd1)
2022-11-01 10:31:50 -04:00