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
Clebert Suconic [Mon, 21 Mar 2022 14:08:58 +0000 (10:08 -0400)]
ARTEMIS-3720 Improvements on Paging MaxMessages usage
I "used" the broker a little bit around max-messages and found a few minor issues.
Clebert Suconic [Mon, 21 Mar 2022 20:50:17 +0000 (16:50 -0400)]
This closes #3994
Emmanuel Hugonnet [Mon, 21 Mar 2022 20:00:17 +0000 (21:00 +0100)]
[ARTEMIS-3732]: ServerLocator disableFinalizeCheck method has been removed without being deprecated first.
* Adding back empty default method for retro compatibility.
Jira: https://issues.apache.org/jira/browse/ARTEMIS-3732
Clebert Suconic [Mon, 21 Mar 2022 20:48:39 +0000 (16:48 -0400)]
This closes #3980
Tiago Bueno [Mon, 2 Aug 2021 18:22:46 +0000 (15:22 -0300)]
ARTEMIS-3716 move e2e tests to e2e-tests module
Move all tests which are related to end-to-end testing from smoke-tests
module to a new module named e2e-tests.
These e2e tests are those which are dependent of ContainerService
class. ContainerService class uses artemis inside a container by using
the testcontainers library and for that reason these tests are usually
a quite slow and tecnically they are not a smoke test.
The new e2e-tests module is part of tests module but it is not enabled
by default and to get executed it requires the e2e-tests profile
specification on maven command.
Clebert Suconic [Mon, 21 Mar 2022 20:37:19 +0000 (16:37 -0400)]
NO-JIRA Simplifying some formatting in logging
Domenico Francesco Bruscino [Wed, 16 Mar 2022 08:40:29 +0000 (09:40 +0100)]
ARTEMIS-3709 Add group-rebalance-pause-dispatch attribute to queueType
Justin Bertram [Fri, 18 Mar 2022 19:28:39 +0000 (14:28 -0500)]
ARTEMIS-3676 ignore NoRouteToHostException
This kind of exception can be common in cloud environments and should be
ignored for logging just like ConnectException.
Domenico Francesco Bruscino [Fri, 18 Mar 2022 15:01:41 +0000 (16:01 +0100)]
ARTEMIS-3729 Fix JMS CORE client commit after async sends
Clebert Suconic [Fri, 18 Mar 2022 18:36:57 +0000 (14:36 -0400)]
ARTEMIS-3720 Documentation about max-messages
Clebert Suconic [Thu, 16 Dec 2021 18:37:03 +0000 (13:37 -0500)]
ARTEMIS-3720 Max Number Of Messages on a deciding policy for paging (global and address-settings)
Justin Bertram [Fri, 4 Mar 2022 04:04:20 +0000 (22:04 -0600)]
ARTEMIS-3702 auth failures don't adhere to MQTT spec
The commit includes the following changes:
- Don't drop the connection on subscribe or publish authorization
failures for 3.1 clients.
- Don't drop the connection on subscribe authorization failures for
3.1.1 clients.
- Add configuration parameter to control behavior on publish
authorization failures for 3.1.1 clients (either disconnect or not).
Domenico Francesco Bruscino [Thu, 10 Mar 2022 09:00:47 +0000 (10:00 +0100)]
ARTEMIS-3715 Support testClientID for artemis-maven-plugin
Robbie Gemmell [Tue, 15 Mar 2022 15:06:25 +0000 (15:06 +0000)]
ARTEMIS-3724: Update Jetty to 9.4.45.v20220203
Robbie Gemmell [Tue, 15 Mar 2022 13:19:43 +0000 (13:19 +0000)]
ARTEMIS-3723: update to Netty 4.1.75 (and netty-tcnative 2.0.50)
Clebert Suconic [Tue, 15 Mar 2022 02:36:24 +0000 (22:36 -0400)]
ARTEMIS-3721 AMQP Mirrored Large Message file not removed
Justin Bertram [Fri, 11 Mar 2022 15:36:22 +0000 (09:36 -0600)]
ARTEMIS-3719 DLA and expiry incorrect w/temp-queue-namespace
When using a temporary queue with a `temporary-queue-namespace` the
`AddressSettings` lookup wasn't correct. This commit fixes that and
refactors `QueueImpl` a bit so that it holds a copy of its
`AddressSettings` rather than looking them up all the time. If any
relevant `AddressSettings` changes the
`HierarchicalRepositoryChangeListener` implementation will still
refresh the `QueueImpl` appropriately.
The `QueueControlImpl` was likewise changed to get the dead-letter
address and expiry address directly from the `QueueImpl` rather than
looking them up in the `AddressSettings` repository.
I modified some code that came from ARTEMIS-734, but I ran the test that
was associated with that Jira (i.e.
`o.a.a.a.t.i.c.d.ExpireWhileLoadBalanceTest`) and it passed so I think
that should be fine. There actually was no test included with the
original commit. One was added later so it's hard to say for sure it
exactly captures the original issue.
Robbie Gemmell [Mon, 14 Mar 2022 17:15:16 +0000 (17:15 +0000)]
ARTEMIS-3591: stop paging checkMemory task executing twice
Justin Bertram [Wed, 9 Mar 2022 19:46:32 +0000 (13:46 -0600)]
This closes #3977
pringinacio [Mon, 7 Mar 2022 15:00:29 +0000 (15:00 +0000)]
ARTEMIS-3714 change Docker group and user IDs to 1001
Changed group and user ids to 1001 to allow Artemis user to be the own
of /var/lib/artemis-instance and /opt/activemq-artemis. Otherwise the
owner will be root (1000).
This was already done in Dockerfile-centos file.
Justin Bertram [Wed, 9 Mar 2022 17:19:08 +0000 (11:19 -0600)]
This closes #3981
Justin Bertram [Wed, 9 Mar 2022 04:08:32 +0000 (22:08 -0600)]
ARTEMIS-3712 refresh doc generation tool-chain