Commit Graph

11208 Commits

Author SHA1 Message Date
Michał Janczykowski b1f5d6beb3 [AMQ-9199] reordered imports
(cherry picked from commit 13ec5d5b7a)
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 7de7ba2aa9)
2023-02-02 14:44:33 +01:00
Matt Pavlovich ce7782a06f [AMQ-9206] Upgrade to Spring 5.3.25
(cherry picked from 0f5e5e6337)
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 ed924cddac)
2023-02-01 11:33:14 -05:00
Christopher L. Shannon (cshannon) bf65929fdc AMQ-9201 - Update Jolokia default access configuration
(cherry picked from commit 6120169e56)
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 a083ff4d23)
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 1b9bd133fd)
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 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
Jean-Baptiste Onofré de44ca68aa [AMQ-9176] Upgrade to Apache POM 28
(cherry picked from commit 43c7c7c227)
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 dc55028c00)
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 49626f07b6)
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 44a5539afc)
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 c563f6e355)
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 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
Jean-Baptiste Onofré e31a168aa7 [AMQ-9174] Upgrade to groovy 4.0.6
(cherry picked from commit 1228fc4421)
2022-11-21 14:20:22 +01:00
Jean-Baptiste Onofré 91d6ddd1aa [AMQ-9172] Upgrade to jettison 1.5.2
(cherry picked from commit c79b71c2e7)
2022-11-21 09:36:11 +01:00
Jean-Baptiste Onofré 8408595fc8 [AMQ-9171] Upgrade to shiro 1.10.1
(cherry picked from commit 42e1bf7467)
2022-11-20 17:11:27 +01:00
Jean-Baptiste Onofré b00655efb2 [AMQ-9131] Upgrade to xbean 4.22
(cherry picked from commit 421a2dedbf)
2022-11-20 07:18:50 +01:00
Jean-Baptiste Onofré 61100f2e8c [AMQ-9164] Upgrade to jackson 2.14.0
(cherry picked from commit a562b99431)
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 f6e26085cf)
2022-11-17 09:11:38 -05:00
Jean-Baptiste Onofré f81a80f3ed [AMQ-9120] Upgrade to shiro 1.10.0
(cherry picked from commit f93c0ec4ee)
2022-11-17 05:04:33 +01: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
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 8554a1464c)
2022-11-15 17:02:11 -05:00
Matt Pavlovich 31b6a03e8b [AMQ-9113] Upgrade to Jetty 9.4.49.v20220914
(cherry picked from commit 3de38130ed)
2022-11-15 14:19:25 +01: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
Jonathan Gallimore e391298b50 Update XJC plugin to 3.3.2
(cherry picked from commit 731ca3694a)
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 f473efe163)
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 837df23be6)
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 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) 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 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
Matt Pavlovich 465bed7b3f [AMQ-9115] Upgrade to commons-daemon 1.3.2
(cherry picked from commit 68a1d6e612)
2022-10-31 17:43:52 +01:00
Matt Pavlovich bbd15972e0 [AMQ-9116] Upgrade to jettison 1.5.1
(cherry picked from commit e9b7afbe1f)
2022-10-31 17:39:54 +01:00
Matt Pavlovich f2453ed4bb [AMQ-9112] Upgrade to Spring 5.3.23 (#910)
(cherry picked from commit c86ed31122)
2022-10-30 17:26:55 +01:00
Matt Pavlovich bc1bd8087f [AMQ-9065] Replace ianal-maven-plugin with geronimo tools-maven-plugin for JDK 17 support (#901)
(cherry picked from commit b55e8cd5d2)
2022-10-30 17:04:13 +01:00
Jean-Baptiste Onofré 774137436f [AMQ-9133] Upgrade to ASM 9.4
(cherry picked from commit 6e7a4c66f1)
2022-10-30 16:35:37 +01:00
Jean-Baptiste Onofré 27143af161 [AMQ-9130] Upgrade to jackson 2.13.4 and jackson-databind 2.13.4.1
(cherry picked from commit 5cbaa0356d)
2022-10-30 16:32:38 +01:00
Matt Pavlovich ff97a42d0d [AMQ-9114] Upgrade to log4j2 2.19.0 (#913)
(cherry picked from commit be1a5ec68e)
2022-10-30 16:30:13 +01:00
Dmytro Chebotarskyi ba32225114 AMQ-6148 re-using LDAP context for authentication
(cherry picked from commit 610b87aed8)
2022-10-19 06:00:22 +02:00
Lucas Tétreault 51c390737a remove consumers more efficiently
(cherry pick from commit b7f73d4875)
2022-10-13 05:58:32 +02:00
Lucas Tétreault 258a66652a Fix serialization of RemoveInfo advisory message for AMQP consumers
(cherry picked from commit e0a37a5c30)
2022-10-13 05:54:38 +02:00