Commit Graph

1206 Commits

Author SHA1 Message Date
Jean-Baptiste Onofré ed5fb45a8e [maven-release-plugin] prepare release activemq-5.16.5 2022-04-29 08:21:20 +02:00
Jean-Baptiste Onofré b9d24e586d Use Jetty atomic jar files instead of jetty-all (deprecated) and update to Jetty 9.4.45.v20220203 (#784)
* [AMQ-7358] Use jetty atomic jar files instead of jetty-all uber jar
(deprecated according to Jetty team)
[AMQ-8461] Upgrade to Jetty 9.4.45.v20220203

(cherry picked from commit fa461c876a)
2022-03-02 16:24:56 +01:00
Matt Pavlovich 9db5f436cf [AMQ-8515] FailoverTransport should handle MaxFrameSizeExceededException (#785)
(cherry picked from commit 094dbc89f3)
2022-03-02 15:41:25 +01:00
Jean-Baptiste Onofré 2a9161116f [maven-release-plugin] prepare for next development iteration 2022-02-11 17:28:32 +01:00
Jean-Baptiste Onofré 025f99f245 [maven-release-plugin] prepare release activemq-5.16.4 2022-02-11 17:18:49 +01:00
Jean-Baptiste Onofré cade46f4a4
Merge pull request #754 from coheigea/AMQ-8472
AMQ-8472 - Switch to reload4j for logging
2022-02-10 06:07:25 +01:00
Matt Pavlovich 0b7ebc5ad1 [AMQ-8443] Add unit test
(cherry picked from commit 09458713aa)
2022-02-09 10:50:23 -05:00
Matt Pavlovich acc3c694ab [AMQ-8397] Add unit tests for AMQ-8397
(cherry picked from commit 9d8ee0d3b7)
2022-02-09 06:35:57 -05:00
Colm O hEigeartaigh 1f01a61426
AMQ-8472 - Switch to reload4j for logging 2022-02-08 14:02:31 +00:00
Matt Pavlovich 3b5ebd0bb7 [AMQ-8413] NetworkConnectore remote user and pass unit test
(cherry picked from commit 2a9f777aab)
2022-02-07 11:28:28 -05:00
Matt Pavlovich c1cf24cb2a [AMQ-8053] UserIDBroker unit tests
(cherry picked from commit 49f1b2c903)
2022-02-07 08:29:09 -05:00
Christopher L. Shannon (cshannon) 42e65f88e3 AMQ-8412 - Add wireformat negotiation test for maxFrameSizeEnabled
Verify that maxFrameSizeEnabled being configured on the client or the
server is not negotiated and won't affect the other

(cherry picked from commit 26a3c55833)
2022-02-07 08:04:42 -05:00
Matt Pavlovich e630a3cc61 [AMQ-8412] Update client-side maxFrameSize handling to be more symetrical with server-side
- Handle in the OpenWireFormat class
 - Add unit tests to confirm
 - Verify compression is accounted for
 - Verify the ability to disable using wireFormat.maxFrameSizeEnabled=false
 - [cshannon] Reworked max frame size test case to add in all transports and all client/server cases

(cherry picked from commit 67a2edbf0d)
2022-02-07 08:04:33 -05:00
Endre Stølsvik c81740592b StatisticsBrokerPlugin: Add feat: request destination firstMessageTimestamp
Adding a feature (STATS_FIRST_MESSAGE_TIMESTAMP) to the
StatisticsBrokerPlugin's destination-statistics for getting the
timestamp of the first message in the destination(s) being requested: If
you on the query-message set the property
StatisticsBroker.STATS_FIRST_MESSAGE_TIMESTAMP to anything (e.g. boolean
true), a long value "firstMessageTimestamp" will be added to the
statistics reply message(s). Since the reply message has JMSTimestamp
set, which is the broker's now-timestamp, you may also on the query side
calculate the age of the first message in milliseconds. The key name was
chosen since that is the name of the corresponding feature in Artemis.

This extension of the existing feature is implemented to be as
non-intrusive as possible, adding very little runtime cost if not
requested. It also seems like the runtime cost for enabling this
feature, thus finding and adding the firstMessageTimestamp, is small.

While at it, also slightly improving an existing feature
(STATS_DENOTE_END_LIST) where a reply to a destination query can be
"null terminated": After sending the relevant replies, the
StatisticsBroker also sends an empty message. This feature is relevant
if the query is a wildcard query, thus returning multiple messages: The
empty message denotes the end of the replies. However, to activate this
feature, a somewhat complicated query destination had to be constructed.
Adopting the solution for the other StatisticsBroker feature where you
may reset the broker statistics by adding a property to the query
message, this null-termination feature now /also/ checks for the
presence of this query modifier STATS_DENOTE_END_LIST as a property.
(This property based solution was thus also adopted for the present
'firstMessageTimestamp' solution, as it was found much more intuitive).

Added tests for both the STATS_FIRST_MESSAGE_TIMESTAMP query modifier,
and the improved STATS_DENOTE_END_LIST property-based query modifier.

Had to make the Topic.doBrowse(List browseList, int max) public - the
corresponding method for Queue was already public.

Made the evaluation of whether this is a StatisticsBroker-relevant
message a microscopic bit more performant (exiting faster if not
relevant): To the initial test of whether the message is relevant, which
only checked for replyTo being set, a check for 'destination.
startsWith("ActiveMQ.Statistics")' was added. Only if so, the rest of
the evaluations kick in. Also using 'string.startsWith(..)' instead of
the verbose 'string.regionMatches(..)'.

Removed an unused import on PartitionBrokerTest.java, as IntelliJ
complained about not finding it.

(cherry picked from commit 9167a79b79)
2022-01-30 16:07:11 +01:00
Alexej Timonin 7a8d517436 Allow custom delimiter when sending TextMessages via MBean
This enables possibility to send messages containing commas in the body
with tools such as jconsole.
Example simple text as body: body=Hello, world!
Example json as body: body={"a":"b","c":"d"}

(cherry picked from commit 7c63227003)
2022-01-22 17:14:44 +01:00
Jean-Baptiste Onofré be8fc6e6eb [maven-release-plugin] prepare for next development iteration 2021-08-10 07:47:44 +02:00
Jean-Baptiste Onofré 50582306a7 [maven-release-plugin] prepare release activemq-5.16.3 2021-08-10 07:47:23 +02:00
Christopher L. Shannon (cshannon) 2ec4673a59 AMQ-8349 - Ensure virtual destination consumer advisories are only
replayed to new advisory consumers and not existing

(cherry picked from commit 8b99596eeb)
2021-08-05 09:59:41 -04:00
jbonofre 9eda1508e3 [maven-release-plugin] prepare for next development iteration 2021-04-21 07:39:09 +02:00
jbonofre ff1af27106 [maven-release-plugin] prepare release activemq-5.16.2 2021-04-21 07:38:47 +02:00
gtully 818d885d6c AMQ-7298 - fix regression with broker redelivery plugin, fix and test relates to AMQ-8168
(cherry picked from commit c4d2ddfce9)
2021-04-21 07:29:18 +02:00
charlie-aws c4299ad9cc fix BrokerServiceTest by replacing powermock
(cherry picked from commit f8b0db2dd4)
2021-03-31 15:42:53 +02:00
charlie-aws 84bd96866d AMQ-8189 add wait time to CachedLDAPAuthorizationModuleTest
(cherry picked from commit 30986e372c)
2021-03-27 07:04:38 +01:00
Charlie Chen 9c1849cf62 AMQ-8190 add wait time & shrink duration for CI test run
(cherry picked from commit 6691e23e48)
2021-03-25 12:51:43 +01:00
Jonathan Gallimore 468cd9c5cc AMQ-8201 Forward commit commands for local transactions as well as XA transactions during ACK compaction
(cherry picked from commit 631342d76a)
2021-03-25 12:43:07 +01:00
kimmking e5b6982afd ClientIdFilterDispatchPolicy dispatches messages in a topic to a given client. Then the message with a PTP_CLIENTID property, can be received by a mqtt client with the same clientId. (#238)
(cherry picked from commit b6ab868f94)
2021-03-22 16:23:17 +01:00
Christopher L. Shannon (cshannon) 34475dbde3 AMQ-8184 - Re-enable NIO tests
Re-enable the nio transport tests in activemq-unit-tests by default to
catch transport errors. Also fix broken tests

(cherry picked from commit 2cf3decd8e)
2021-03-15 07:56:17 +01:00
Christopher L. Shannon (cshannon) 51a4014c54 AMQ-8183 - prevent infinite loop when maxFrameSize is exceeded
This makes sure the nio transport thread properly terminates if
maxFrameSize is exceeded with OpenWire to prevent an infinite loop that
uses up all the cpu

(cherry picked from commit 944ca6c7e1)
2021-03-11 10:02:25 -05:00
jbonofre 6d82e628f7 [maven-release-plugin] prepare for next development iteration 2021-01-14 14:02:35 +01:00
jbonofre e432a78c19 [maven-release-plugin] prepare release activemq-5.16.1 2021-01-14 14:00:24 +01:00
jbonofre 6f57e76f29 Fix missing ASF header 2021-01-13 15:16:20 +01:00
Marcono1234 7bd37d7121 Fix unintended String concatenation 2021-01-05 16:49:51 +01:00
Roman Nevezhyn f71c6674f0 [AMQ-8104] Fix NPE when pausing queue if audit is on
cherry picked from 651c5ff2cf
2020-12-28 07:36:21 +01:00
jbonofre c5622d674d Quick fix on InMemoryJobSchedulerTest 2020-12-02 10:06:53 +01:00
jbonofre d9b2d9309e [AMQ-8068] Fix topic memory leak on message eviction using UniquePropertyMessageEvictionStrategy
(cherry picked from commit 2bc87c2c5f)
2020-11-23 13:41:26 +01:00
dhmgit 894c60ee0c adding an option which allows messages to expire on active durable subscriptions
(cherry picked from commit 2f2fe6855f)
2020-11-22 07:17:44 +01:00
murali.mogalayapalli d9113626e5 [AMQ-8028] Add sendWhenNotMatched option to composite destination filter
(cherry picked from commit 55914d3ac1)
2020-11-21 14:22:06 +01:00
jbonofre 1be0d3228d Improve AMQ7118Test stability 2020-11-18 16:46:13 +01:00
Colm O hEigeartaigh 811f49b947 AMQ-7513 - Fix http://activemq.org links
(cherry picked from commit fca3b615eb)
2020-08-11 09:43:15 +02:00
gtully b3386c8ac7 no jira - add selector on originalDestination attribute test 2020-07-06 16:56:30 +01:00
Jean-Baptiste Onofré 334476ac63 [maven-release-plugin] prepare for next development iteration 2020-06-25 07:26:41 +02:00
Jean-Baptiste Onofré 86dd78b1aa [maven-release-plugin] prepare release activemq-5.16.0 2020-06-25 07:26:13 +02:00
Jean-Baptiste Onofré 6908749c2f Fix version 2020-06-25 07:13:04 +02:00
Jean-Baptiste Onofré ff2dae82f3 [maven-release-plugin] prepare release activemq-5.16.0 2020-06-24 21:56:52 +02:00
Christopher L. Shannon (cshannon) 5901d9a6f0 AMQ-7505 - Adding missing license headers to two source files 2020-06-24 13:22:09 -04:00
jbonofre 4ed2ba22a9 Cancel 5.16.0 release 2020-06-24 15:19:34 +02:00
Jean-Baptiste Onofré cd1e9f8697 [maven-release-plugin] prepare for next development iteration 2020-06-23 17:40:26 +02:00
Jean-Baptiste Onofré 2e890c6224 [maven-release-plugin] prepare release activemq-5.16.0 2020-06-23 17:39:53 +02:00
Jean-Baptiste Onofré 4991668549
Merge pull request #517 from coheigea/AMQ-7450
AMQ-7450 - Put some restrictions on the URLs that are allowed in Blob…
2020-06-23 07:01:38 +02:00
Christopher L. Shannon (cshannon) d539ff77b9 (AMQ-7496) - Improve inflight message size test accuracy and reliability 2020-06-11 07:01:11 -04:00