Clebert Suconic [Tue, 3 May 2022 13:36:25 +0000 (09:36 -0400)]
ARTEMIS-3811 Cluster connections clashing with ANYCast addresses
This is a test fix for AMQPClusterReplicaTest
Justin Bertram [Tue, 3 May 2022 16:15:28 +0000 (11:15 -0500)]
NO-JIRA clarify default for send-to-dla-on-no-route
Clebert Suconic [Mon, 2 May 2022 18:24:29 +0000 (14:24 -0400)]
ARTEMIS-3810 Do not throw error resuming already active XA Transaction
Clebert Suconic [Fri, 29 Apr 2022 12:29:39 +0000 (08:29 -0400)]
NO-JIRA stopping object on finalize on openWire test
trying to avoid a few test failure seen on CI
Clebert Suconic [Thu, 28 Apr 2022 23:35:26 +0000 (19:35 -0400)]
ARTEMIS-3807 Simplify Redistributor avoid races, and fix ProtocolMessageLoadBalancingTest
The control existing in Redistributor is not needed as the Queue::deliver will already have a control on re-scheduling the loop and avoid holding references for too long.
Justin Bertram [Thu, 28 Apr 2022 15:24:42 +0000 (10:24 -0500)]
ARTEMIS-3806 upgrade logging dependencies
Clebert Suconic [Wed, 27 Apr 2022 21:26:46 +0000 (17:26 -0400)]
[maven-release-plugin] prepare for next development iteration
Clebert Suconic [Wed, 27 Apr 2022 21:26:45 +0000 (17:26 -0400)]
[maven-release-plugin] prepare release 2.22.0
Clebert Suconic [Wed, 27 Apr 2022 20:03:30 +0000 (16:03 -0400)]
NO-JIRA fixing openTracingPluginTest
Domenico Francesco Bruscino [Wed, 27 Apr 2022 09:17:54 +0000 (11:17 +0200)]
ARTEMIS-3799 Fix default ping command pipe error for Windows
Domenico Francesco Bruscino [Tue, 26 Apr 2022 15:18:53 +0000 (17:18 +0200)]
ARTEMIS-3803 Fix first NetworkHealthCheck execution
The NetworkHealthCheck hasn't to execute the default command if a custom
command is defined.
Clebert Suconic [Mon, 25 Apr 2022 13:58:14 +0000 (09:58 -0400)]
ARTEMIS-3805 producer-window-size default
Clebert Suconic [Mon, 25 Apr 2022 22:43:11 +0000 (18:43 -0400)]
ARTEMIS-3802 Avoiding races on deleteWithID and Iterator.remove
Robbie Gemmell [Tue, 26 Apr 2022 15:39:27 +0000 (16:39 +0100)]
NO-JIRA: update release instructions to reflect change to CDN, and clarify some bits
Domenico Francesco Bruscino [Tue, 26 Apr 2022 13:49:14 +0000 (15:49 +0200)]
ARTEMIS-3799 Fix default ping command for Windows
The Windows ping command doesn't fail on destination host unreachable
Clebert Suconic [Tue, 26 Apr 2022 15:52:06 +0000 (11:52 -0400)]
NO-JIRA Fixing Thread Leakage on test from UDP thread
When running a UDP connection factory you have to either keep it running, or close it so the UDP thread is closed.
this is an issue for the testsuite as we validate for leaked threads. This needs to be fixed on the test.
Robbie Gemmell [Tue, 26 Apr 2022 14:50:13 +0000 (15:50 +0100)]
ARTEMIS-3804: make the version number available to reference in the user manual, add it to the intro page
Updates release instructions to note using the filtered scratch area from artemis-website for other builds
Justin Bertram [Tue, 26 Apr 2022 14:53:38 +0000 (09:53 -0500)]
ARTEMIS-3801 fix test
Clebert Suconic [Tue, 26 Apr 2022 01:53:56 +0000 (21:53 -0400)]
ARTEMIS-3800 Fixing failing test
Justin Bertram [Mon, 25 Apr 2022 22:07:17 +0000 (17:07 -0500)]
ARTEMIS-3801 not getting messages on MQTT subscriptions with $
Justin Bertram [Mon, 25 Apr 2022 18:09:13 +0000 (13:09 -0500)]
ARTEMIS-3800 allow CLI to delete address with queues
Clebert Suconic [Mon, 25 Apr 2022 19:38:49 +0000 (15:38 -0400)]
Revert "ARTEMIS-3707 ResourceAdapter Documentation"
This reverts commit
6b784daff1bb3ff178e4b501d6c60bdcf0b456ca.
Emmanuel Hugonnet [Mon, 25 Apr 2022 16:01:20 +0000 (18:01 +0200)]
[ARTEMIS-3799]: Ping command is wrong on Windows.
* Changing the default ping command for Windows.
Jira: https://issues.apache.org/jira/browse/ARTEMIS-3799
Clebert Suconic [Mon, 25 Apr 2022 13:44:36 +0000 (09:44 -0400)]
This closes #4040
Marco Roehrs [Fri, 22 Apr 2022 13:35:27 +0000 (15:35 +0200)]
ARTEMIS-3798 Allow binary deserialization of message properties AMQ_MSG_MESSAGE_ID, AMQ_MSG_ORIG_DESTINATION, AMQ_MSG_PRODUCER_ID & AMQ_MSG_REPLY_TO from existing messages.
co-authored: Justin Bertram contributed OpenWireMessageConverterTest changes
waldi5001 [Fri, 22 Apr 2022 18:24:52 +0000 (20:24 +0200)]
ARTEMIS-3707 ResourceAdapter Documentation
waldi5001 [Fri, 4 Mar 2022 20:46:42 +0000 (21:46 +0100)]
ARTEMIS-3707 fix ra.xml
* update xml schemas
* fix ConnectionParameters
* remove TransactionManagerLocatorMethod and "The producer max rate"
* remove The max connections
Clebert Suconic [Sat, 23 Apr 2022 15:17:24 +0000 (11:17 -0400)]
ARTEMIS-3753 Small Improvement on RouterContext.internalOnly calculation
Clebert Suconic [Sat, 23 Apr 2022 14:15:00 +0000 (10:15 -0400)]
This closes #4012
iliya [Mon, 4 Apr 2022 21:21:37 +0000 (00:21 +0300)]
ARTEMIS-3753 Prevent sending message to internal queues on mirror
In cluster configuration messages could be routed to internal queues for
further delivering on different broker. We need to check that before
sending to SNF, otherwise message can stuck on target server and will
never receive ACK.
co-author: Clebert Suconic
Discusssions on https://github.com/apache/activemq-artemis/pull/4012 and https://github.com/apache/activemq-artemis/pull/4038
Clebert Suconic [Fri, 22 Apr 2022 15:27:54 +0000 (11:27 -0400)]
ARTEMIS-3756 Removing test that is now invalid
Robbie Gemmell [Fri, 22 Apr 2022 09:16:55 +0000 (10:16 +0100)]
ARTEMIS-3752: update to Spring 5.3.19 and Spring Boot 2.6.7 which uses it
Clebert Suconic [Thu, 21 Apr 2022 23:10:00 +0000 (19:10 -0400)]
This closes #4009
Emmanuel Hugonnet [Thu, 7 Apr 2022 15:10:31 +0000 (17:10 +0200)]
[ARTEMIS-3756]: Enabling extra parameters to be passed by the URI.
* passing the full list of parameters when creating the URI.
* moving the WARN message to DEBUG when unknown parameters are
received.
Jira: https://issues.apache.org/jira/browse/ARTEMIS-3756
Justin Bertram [Fri, 1 Apr 2022 18:15:21 +0000 (13:15 -0500)]
ARTEMIS-3755 mitigate NPE related to fail-back
AntonRoskvist [Thu, 21 Apr 2022 19:12:27 +0000 (21:12 +0200)]
ARTEMIS-3771 Avoid not needed lookup for address on OpenWire connections
Justin Bertram [Wed, 20 Apr 2022 17:01:33 +0000 (12:01 -0500)]
ARTEMIS-3788 don't send MQTT will message if will flag = false
Clebert Suconic [Thu, 21 Apr 2022 19:34:30 +0000 (15:34 -0400)]
This closes #4037
Justin Bertram [Wed, 20 Apr 2022 17:33:51 +0000 (12:33 -0500)]
ARTEMIS-3789 respect session expiry interval on MQTT disconnect message
Clebert Suconic [Wed, 20 Apr 2022 21:39:13 +0000 (17:39 -0400)]
ARTEMIS-3791 Openwire failover leaving sessions leaked
Clebert Suconic [Thu, 21 Apr 2022 01:20:07 +0000 (21:20 -0400)]
ARTEMIS-3765 Fixing testsuite
we cannot really change the attribute's name as it may break user's applications.
I am adding the previous property here.
Gary Tully [Wed, 20 Apr 2022 15:51:24 +0000 (16:51 +0100)]
ARTEMIS-3786 - ensure named properties config from routerConfiguration can be created from string property value
AntonRoskvist [Tue, 19 Apr 2022 10:42:09 +0000 (12:42 +0200)]
ARTEMIS-3780 - OpenWire, UTF8Buffer to String before setting properties to avoid exception
Justin Bertram [Tue, 19 Apr 2022 18:04:20 +0000 (13:04 -0500)]
ARTEMIS-3781 send PUBREC on duplicate PUBLISH for MQTT QoS 2
The MQTT 5 (and 3.1.1) specification states:
Until it has received the corresponding PUBREL packet, the receiver
MUST acknowledge any subsequent PUBLISH packet with the same Packet
Identifier by sending a PUBREC. It MUST NOT cause duplicate messages to
be delivered to any onward recipients in this case [MQTT-4.3.3-10].
The broker prevents a duplicate message, but it doesn't respond with a
PUBREC. This commit fixes that.
Justin Bertram [Tue, 19 Apr 2022 17:39:56 +0000 (12:39 -0500)]
NO-JIRA Fix MQTT trace logging NPE
Robbie Gemmell [Wed, 20 Apr 2022 09:57:32 +0000 (10:57 +0100)]
ARTEMIS-3783: rationalise config for alternate jakarta spec versions to simplify and align their use
Robbie Gemmell [Wed, 20 Apr 2022 09:33:57 +0000 (10:33 +0100)]
ARTEMIS-3782: use existing managed version for maven-shade-plugin uses
Justin Bertram [Tue, 19 Apr 2022 14:49:31 +0000 (09:49 -0500)]
This closes #4019
aaron.hoffer [Mon, 4 Apr 2022 20:34:46 +0000 (13:34 -0700)]
ARTEMIS-3765 Display validated user in Hawtio
This PR adds a "Validated User" column to the Hawtio plugin. The column is
not visible by default. The "Validated User" column is available in the
Session, Consumer, and Producer tabs of the artemis-navigation notebook.
"Validated User" is also available for sort and filtering in those view.
The "Validated Consumer" in the Producer view is always blank. I debugged
as far as I could, but did not find the cause of the issue.
Justin Bertram [Tue, 12 Apr 2022 18:55:12 +0000 (13:55 -0500)]
ARTEMIS-3775 don't carry forward MQTT topic aliases to new connection
Justin Bertram [Wed, 13 Apr 2022 16:45:14 +0000 (11:45 -0500)]
ARTEMIS-3777 fix MQTT request/response + nolocal
Removing the connection ID property from the actual *message* breaks the
nolocal functionality. Removing the property isn't necessary in the
first place so this commit reomves that code.
Justin Bertram [Wed, 13 Apr 2022 03:40:12 +0000 (22:40 -0500)]
NO-JIRA improve MQTT trace logging
Clebert Suconic [Mon, 18 Apr 2022 19:11:47 +0000 (15:11 -0400)]
This closes #4030
iliya [Sun, 17 Apr 2022 10:15:47 +0000 (13:15 +0300)]
ARTEMIS-3751 Do not override large message size
It is possible to receive a compressed message from the client as regular message. Such a message will already contain correct body size, that takes compression into account.
Clebert Suconic [Thu, 14 Apr 2022 22:03:50 +0000 (18:03 -0400)]
ARTEMIS-3779 Critial IO Exception logged as Error
Clebert Suconic [Thu, 14 Apr 2022 21:12:39 +0000 (17:12 -0400)]
ARTEMIS-3778 Just avoiding NPE on Expiry Reaper
Added an extra check on null, just in case
it should not happen, but I preferred adding this clause on the safe side
Clebert Suconic [Wed, 13 Apr 2022 17:17:44 +0000 (13:17 -0400)]
ARTEMIS-3778 Streamline Expiration Reaping
Instead of holding a thread and an iterator, we should instead keep moving to next references
without holding any threads. Just with callbacks.
Clebert Suconic [Wed, 13 Apr 2022 16:34:30 +0000 (12:34 -0400)]
ARTEMIS-3776 just my OCD applying aesthetic tweaks to recediveOW.groovy
Clebert Suconic [Wed, 13 Apr 2022 01:58:13 +0000 (21:58 -0400)]
ARTEMIS-3776 Avoid Integer.MAX_VALUE overflow on openwire clients
Older versions of Openwire clients wil be affected by AMQ-6431.
As a result of the issue if the ID of the message>Integer.MAX_VALUE
a consumer configured with Failover and doing duplicate detection on the client
will not be able to process duplicate detection accordingly and miss messages.
Justin Bertram [Fri, 8 Apr 2022 18:25:04 +0000 (13:25 -0500)]
ARTEMIS-3773 remove defunct rate references from web console
This is a follow-up from ARTEMIS-3397. This commit removes the last
traces of the "rate" queue metric from the web console.
Justin Bertram [Tue, 12 Apr 2022 15:05:03 +0000 (10:05 -0500)]
ARTEMIS-3774 support user properties on MQTT will message
Robbie Gemmell [Fri, 8 Apr 2022 12:38:41 +0000 (13:38 +0100)]
ARTEMIS-3772: update to mockito 4.4.0
Clebert Suconic [Fri, 1 Apr 2022 02:01:30 +0000 (22:01 -0400)]
ARTEMIS-3761 Improve page cleanup to remove messages in the middle of the stream as well
Paging only removes files at the beginning of the stream...
Say you have paged files 1 through 1000...
if all the messages are ack, but one message on file 1 is missing an ack, all the 999 subsequent files would not be removed until all the messages on file 1 is ack.
This was working as engineered, but sometimes devs don't have complete control on their app.
With this improvement we will now remove messages in the middle of the stream as well.
There is also some improvement to how browsing and page work with this
Clebert Suconic [Thu, 7 Apr 2022 13:19:16 +0000 (09:19 -0400)]
ARTEMIS-3769 Fixing queue browsing iterator avoiding NoSuchElement exception from the Iteration
QueueImpl::browserIterator could throw NoSuchElementException and this is fixing the iterator
Found this while testing ARTEMIS-3761
Clebert Suconic [Tue, 5 Apr 2022 22:18:27 +0000 (18:18 -0400)]
NO-JIRA Making AmqpFlowControlFailTest more accurate
this test was relying on internal details such as number of credits on the link.
The test was flaky and eventually failing or hunging.
Robbie Gemmell [Thu, 7 Apr 2022 11:58:38 +0000 (12:58 +0100)]
ARTEMIS-3768: update to Qpid JMS 1.6.0
Robbie Gemmell [Mon, 4 Apr 2022 14:28:06 +0000 (15:28 +0100)]
ARTEMIS-3758: clean up lots of tests that never run, remove related files + dependencies and some unnecessary deps
Robbie Gemmell [Wed, 6 Apr 2022 15:07:06 +0000 (16:07 +0100)]
ARTEMIS-3762: update docs build, add version overrides to clear security warnings
Robbie Gemmell [Thu, 7 Apr 2022 10:01:06 +0000 (11:01 +0100)]
This closes #4014
Domenico Francesco Bruscino [Tue, 5 Apr 2022 07:45:34 +0000 (09:45 +0200)]
ARTEMIS-3760 Upgrade jackson version to 2.13.2
Justin Bertram [Wed, 6 Apr 2022 16:38:29 +0000 (11:38 -0500)]
ARTEMIS-3764 wrong CONNACK return code for MQTT5
This bug is causing tests in o.a.a.a.t.i.m.s.c.ConnectTestsWithSecurity
to fail.
This commit fixes the problem by setting the session's version earlier
in the logic handling the CONNECT packet so that the proper CONNACK
return code can be supplied to the remote client in case of
authentication failure.
Gary Tully [Tue, 5 Apr 2022 12:15:44 +0000 (13:15 +0100)]
ensure temp files are off the base class temp folder rule root to get cleaned up post test
Gary Tully [Mon, 4 Apr 2022 16:17:38 +0000 (17:17 +0100)]
ARTEMIS-3757 - allow system and env var substution of properties config, respect order of file loaded properties and add generic enum converter
Domenico Francesco Bruscino [Mon, 4 Apr 2022 08:59:14 +0000 (10:59 +0200)]
ARTEMIS-3752 Upgrade Spring Framework to 5.3.18 for examples and tests
Domenico Francesco Bruscino [Fri, 1 Apr 2022 12:47:42 +0000 (14:47 +0200)]
ARTEMIS-3752 Upgrade Spring Framework to 5.3.18
Domenico Francesco Bruscino [Fri, 1 Apr 2022 15:54:05 +0000 (17:54 +0200)]
ARTEMIS-3754 Upgrade tomcat-servlet-api to 8.5.78
Justin Bertram [Wed, 30 Mar 2022 16:57:50 +0000 (11:57 -0500)]
This closes #3997
Justin Bertram [Thu, 24 Mar 2022 19:43:53 +0000 (14:43 -0500)]
ARTEMIS-3744 NPE with empty security-manager config in bootstrap.xml
Justin Bertram [Wed, 30 Mar 2022 16:57:28 +0000 (11:57 -0500)]
This closes #3996
Justin Bertram [Wed, 23 Mar 2022 20:50:19 +0000 (15:50 -0500)]
ARTEMIS-3741 Cache MBeanInfoHelper results
The utility methods in
`org.apache.activemq.artemis.core.management.impl.MBeanInfoHelper` are
executed *a lot* - especially for Jolokia which is used by the web
console. The `MBeanOperationInfo` and `MBeanAttributeInfo` results are
static and reflection is slow therefore they should not be calculated
over and over again. Rather they should be calculated once and cached
for later use.
Caching these results significantly improves performance. Over the
course of 1,000,000 invocations the difference is several orders of
magnitude. This improves usability substantially when dealing with,
for example, tens of thousands of addresses and/or queues.
Justin Bertram [Wed, 23 Mar 2022 20:37:58 +0000 (15:37 -0500)]
ARTEMIS-3740 Upgrade Johnzon
Justin Bertram [Wed, 30 Mar 2022 16:56:47 +0000 (11:56 -0500)]
This closes #4002
Vilius Šumskas [Sun, 27 Mar 2022 19:30:24 +0000 (22:30 +0300)]
NO-JIRA addUser is also applicable for ActiveMQBasicSerurityManager
Justin Bertram [Wed, 30 Mar 2022 16:15:26 +0000 (11:15 -0500)]
This closes #3998
AntonRoskvist [Fri, 25 Mar 2022 10:09:24 +0000 (11:09 +0100)]
ARTEMIS-3733 - Destination cache size too small for OpenWire clients
Tiago Bueno [Wed, 30 Mar 2022 14:40:47 +0000 (11:40 -0300)]
NO-JIRA fix duplicate text in security.md doc
Remove the duplicate text in CertificateLoginModule section of the
the security.md doc
Tiago Bueno [Thu, 24 Mar 2022 15:24:45 +0000 (12:24 -0300)]
ARTEMIS-3749 e2e-tests improvements
Scripts:
- Fix the preapre-docker.sh to exit with 0 instead of 1 on success
On pom files:
- Change e2e-tests variable names to e2e-tests.xxxxxx for clarity on
e2e-tests variables
- Add e2e-tests.skipImageBuild variable to control if the docker image
will be build (defaults to not build)
- Add e2e-tests.dockerfile variable to specify the dockerfile to be
used (defaults to Dockerfile-centos)
- Bump testcontainers version to 1.16.3
- Add artemis distribution dependency since the docker image build
depends on it
On ContainerService class:
- Fix exposePorts and exporseFolder to use SELinux shared mode
otherwise the mount fails on machines with SELinux enabled
- Move the logic to use specific user on container from generic start
method to broker specific method to avoid affect other images
- Update the broker image name to a more generic name (activemq-artemis
instead of artemis-centos)
- Update the broker image tag to match with the project version in pom
file
Justin Bertram [Tue, 29 Mar 2022 20:19:43 +0000 (15:19 -0500)]
Fix typo
Justin Bertram [Tue, 29 Mar 2022 20:12:19 +0000 (15:12 -0500)]
NO-JIRA add version/upgrade info for 2.21.0
Justin Bertram [Thu, 24 Mar 2022 18:15:31 +0000 (13:15 -0500)]
NO-JIRA improve Wait.asserEquals error message
Clebert Suconic [Tue, 22 Mar 2022 17:34:58 +0000 (13:34 -0400)]
[maven-release-plugin] prepare for next development iteration
Clebert Suconic [Tue, 22 Mar 2022 17:34:55 +0000 (13:34 -0400)]
[maven-release-plugin] prepare release 2.21.0
Clebert Suconic [Tue, 22 Mar 2022 16:25:44 +0000 (12:25 -0400)]
NO-JIRA updating git clone URI on Release instructions
Clebert Suconic [Tue, 22 Mar 2022 15:52:46 +0000 (11:52 -0400)]
ARTEMIS-3734 Correcting typo on documentation for CLI Transfer
Domenico Francesco Bruscino [Mon, 21 Mar 2022 05:32:32 +0000 (06:32 +0100)]
ARTEMIS-3710 Deprecate queues config element
Clebert Suconic [Tue, 22 Mar 2022 13:15:06 +0000 (09:15 -0400)]
NO-JIRA fixing MessagesExpiredPagingTest
There is a reference expiring in one hour. It should not leave page mode.
This is about still flowing messages, not leaving page mode.
Domenico Francesco Bruscino [Tue, 8 Mar 2022 11:02:39 +0000 (12:02 +0100)]
ARTEMIS-3708 Collapse key transformer into policy
Tiago Bueno [Fri, 21 Jan 2022 17:38:18 +0000 (14:38 -0300)]
NO-JIRA fix ManifestTest
As the test needs the generated jms jars to be verified I moved it from
unit-tests to smoke-tests.
Updated the test to look for the correct jars as the originally
specified does not exist.
Update the test to assert against Implementation-Version instead of
ActiveMQ-Version in the manifest file as the ActiveMQ-Version property does not exist.
Clebert Suconic [Mon, 21 Mar 2022 22:23:46 +0000 (18:23 -0400)]
ARTEMIS-3720 Exposing global-max-messages on the CLI
Justin Bertram [Tue, 8 Mar 2022 17:06:00 +0000 (11:06 -0600)]
ARTEMIS-3711 support AMQ_SCHEDULED_DELAY for OpenWire clients