Commit Graph

10438 Commits

Author SHA1 Message Date
Justin Bertram 661a4e6fdc ARTEMIS-4655 report logging metrics
It may be useful to configure alerts for ERROR or WARN events in the log
which may go unnoticed otherwise.
2024-03-05 09:37:11 +00:00
Clebert Suconic b5791344b4 ARTEIS-4651 Speeding up delivery resume when SNF is paged 2024-03-04 10:47:12 -05:00
Timothy Bish f9f5ed373f ARTEMIS-4665 Fix AMQP federation pull consumer test failures
Fix intermittent test failures in pull consumer test by asserting that there
are the expected number of message on the queue before running the JMS consume
cycle to consume credit and trigger federation credit to flow.
2024-03-01 08:12:22 -08:00
Timothy Bish cffc72fd51 ARTEMIS-4665 Add additional state checks to fix test failures in CI
Tests need to ensure federation links are up before sending to and address
or the sent message can get discarded before the federation consumer is there
to receive it.
2024-02-29 13:44:59 -08:00
Robbie Gemmell c7f536c8b8 ARTEMIS-4631: update to Spring 5.3.32 2024-02-29 16:16:27 +00:00
Robbie Gemmell 155634b115 ARTEMIS-4621: update to PostgreSQL 42.7.2 2024-02-29 16:16:27 +00:00
Gary Tully 6fe603f717 NO-JIRA add comment on current directory to the image build readme 2024-02-29 15:15:16 +00:00
Justin Bertram b10e752e6e
NO-JIRA add optional metrics doc details 2024-02-28 14:08:20 -06:00
Timothy Bish fd5d9b9ad0 ARTEMIS-4658 Prevent reflections when using dual address federation
When federation is configured in two directions between nodes for an address
the message can reflect from one node to another if max hops is not set or not
set correctly and in some federation topologies the max hops value can't solve
the issue and still result in a working configuration. This reflection should
be prevented at the federation consumer level for address consumers.
2024-02-28 16:37:18 +00:00
Robbie Gemmell 723c11ac15 ARTEMIS-4656: remove superflous artemis-spring-integration module 2024-02-27 16:02:54 +00:00
Clebert Suconic b4aa652c7b NO-JIRA Improving AuditLoggerTest::testAuditHotLog* tests
These tests are using an asynchronous feature. the check on Log has to use the Wait.assertEquals

I had to make a few changes to the methods to allow the use of Wait
2024-02-27 10:46:43 -05:00
Clebert Suconic c6cf68fe5c ARTEMIS-4651 Reverting test change on PagedMirrorSmokeTest as it wasn't needed 2024-02-26 11:26:05 -05:00
Clebert Suconic db94b18b73 ARTEMIS-4651 Performance improvements on Mirror and Paging 2024-02-26 11:01:04 -05:00
Albertas Vyšniauskas f4b59c9b25 ARTEMIS-4646 Reuse only acknowledged MQTT IDs
Generate MQTT message IDs from full allowed range of 1-65535 and skip
currently used values. Do not use atomic integer for current ID, because
all accesses and modifications are performed in synchronized context.
2024-02-22 10:54:46 -06:00
Clebert Suconic 4c0ed67897 ARTEMIS-4650 PWD CLI Command
little tool showing current folders on the CLI. Useful to figure out where you're at when using the shell.

I get myself typing pwd all the time I am using the CLI, trying to figure out what is my current location and broker being used.
this would be useful to make sure you are going to use the right broker when multiple CLI instances are running from multiple terminals.
2024-02-21 18:05:47 -05:00
Timothy Bish 91556729f1 ARTEMIS-4653 Create federation consumers for specific queue consumer filters
When Queue consumers attach with filters use those instead of the Queue
filter to filter the messages that are federated to avoid stranding of
messages on the local broker. This will result in multiple federation
consumers if the various attached local consumers all use different
filters but does keep unwanted messages on the remote so that consumers
there can consume those.
2024-02-21 16:53:49 +00:00
Justin Bertram 7d3ed3e0de
Clarify classic wording 2024-02-19 16:06:40 -06:00
Albertas Vyšniauskas 0d1d88a72a ARTEMIS-4649 Use unique STOMP message ID per subscription
Use combined consumer and message ID as STOMP message ID.
2024-02-19 12:31:17 -06:00
Timothy Bish ddbf357625 ARTEMIS-4645 Update broker connection tests to use unique broker names
Use the test name to create unique names for broker connections in the tests and
the associated test logs
2024-02-16 10:18:08 +00:00
Timothy Bish b8800337df ARTEMIS-4642 Fix tracked federated demand when links are rejected or blocked
Under some scenarios federation demand tracking is losing track of total demand
for a federated resource leading to teardown of federated links before all local
demand has been removed from the resource. This occurs most often if the attempts
to establish a federation link are refused because the resource hasn't yet been
created and an eventual attach succeeds, but can also occur in combination with
a plugin blocking or not blocking federation link creation in some cases.
2024-02-15 17:08:39 +00:00
Robbie Gemmell 42a2e4637f ARTEMIS-4644: convert some broker-connection tests to use the ProtonJ2 test peer
Changes from myself and Tim Bish
2024-02-15 17:02:07 +00:00
Justin Bertram 77d9f10a3d ARTEMIS-4588 30 second pause for large msgs + federation
Large message support was added to
o.a.a.a.c.s.f.FederatedQueueConsumerImpl#onMessage via cf85d35 for
ARTEMIS-3308. The problem with that change is that when onMessage
returns o.a.a.a.c.c.i.ClientConsumerImpl#callOnMessage will eventually
call o.a.a.a.c.c.i.ClientLargeMessageImpl#discardBody which eventually
ends up in o.a.a.a.c.c.i.LargeMessageControllerImpl#popPacket waiting 30
seconds (i.e. the default readTimeout) for more packets to arrive (which
never do). This happens because the FederatedQueueConsumer short-cuts
the "normal" process by using LargeMessageControllerImpl#take.

This commit fixes that by tracking the number of bytes "taken" and then
looking at that value later when discarding the body effectively
skipping the 30 second wait.
2024-02-14 11:07:11 -06:00
Alexey Markevich 9cd598ebf4 ARTEMIS-1230 Added artemis-bom 2024-02-14 10:33:19 +00:00
Robbie Gemmell da0287ddba update actions to resolve deprecation warnings, and bump OS version 2024-02-13 11:46:19 +00:00
Domenico Francesco Bruscino 5969c20777 ARTEMIS-4628 Upgrade vertx version to 4.5.3 2024-02-13 09:39:45 +00:00
Timothy Bish 94b6c0ec6e ARTEMIS-4641 Support events for add of missing federation resources
When an AMQP federation instance attempts to federate an address or queue
it can fail if the remote address or queue is not present or cannot be
created based on broker policy. A federation link can also closed if the
federated resource is removed from the remote broker by management etc.
In those cases the remote broker should note the resources that were
targets of federation and send alerts to the source federation broker to
notify it that these resources become available for federation and the
source should attempt again to create federation links if demand still
exists. This allows an AMQP federation instance to heal itself based on
updates from the remote.
2024-02-12 17:54:05 +00:00
Domenico Francesco Bruscino 29781bd5da ARTEMIS-4586 Auto reload web binding SSL stores on change 2024-02-09 17:20:56 +00:00
Justin Bertram 20840cfdf1 ARTEMIS-4639 NPEs when TopologyMember's primary is null 2024-02-09 10:43:50 +00:00
Justin Bertram 311e9382a2
NO-JIRA fix STOMP doc formatting 2024-02-08 11:28:10 -06:00
Clebert Suconic 460faf50fd NO-JIRA proposed log4j commented out log configuration for testing
I have to keep looking how to do this every time I need it.
I just wanted to proposed a commented out section for next time I need this again.
2024-02-07 15:20:57 -06:00
Robbie Gemmell cdd341a1e8 ARTEMIS-4640: move os-maven-plugin extension into a profile, fix artemis-commons reproducibility 2024-02-07 12:03:39 -06:00
Clebert Suconic 057709e948 NO-JIRA removing not implemented class
We should add this class back when implemented.
2024-02-07 11:45:28 -05:00
Justin Bertram 04b5585d66 ARTEMIS-4638 fix bashism in install validation script 2024-02-07 16:05:27 +00:00
Justin Bertram b158a892c9
NO-JIRA small doc clarification 2024-02-07 08:20:07 -06:00
Justin Bertram d418a5c00e ARTEMIS-4636 upgrade OpenWebBeans to 2.0.27 2024-02-06 13:25:14 -06:00
Justin Bertram 62432ee323 ARTEMIS-4635 upgrade Arquillian & Weld dependencies 2024-02-06 13:22:22 -06:00
Justin Bertram 5f0902cfe9 ARTEMIS-4634 upgrade Maven Plugin Annotations to 3.11.0 2024-02-06 13:21:47 -06:00
Justin Bertram 983bb71ad0 ARTEMIS-4633 upgrade Apache HTTP Core to 4.4.16 2024-02-06 13:21:18 -06:00
Justin Bertram a17037bc9e ARTEMIS-4632 upgrade Apache HTTP client to 4.5.14 2024-02-06 13:18:32 -06:00
Justin Bertram e3ce9afbb9 ARTEMIS-4631 upgrade Spring to 5.3.31 2024-02-06 13:18:21 -06:00
Justin Bertram 347f9d7aed
This closes #4387 2024-02-06 13:14:22 -06:00
Maverick19841972 89c3a627e9
ARTEMIS-4187 made SizeAware attributes consistent 2024-02-06 13:12:59 -06:00
Justin Bertram 9bb19f6eb0
Revert "ARTEMIS-4630 Validate if the pid is really from Artemis"
This reverts commit 7ac6f4e99c.
2024-02-06 11:20:07 -06:00
Justin Bertram 968ef74cd7
Revert "ARTEMIS-4630 Fix a typo in earlier commit 7ac6f4e99cc8349b378b4ae9d9ecc0970ac5b2b4"
This reverts commit 306b192e80.
2024-02-06 11:19:52 -06:00
a181321 c4c2a9e718 ARTEMIS-4637 - Allow unordered xml conf elements for clusters and bridges 2024-02-06 11:58:59 -05:00
Clebert Suconic a325a795cf NO-JIRA fixing typo 2024-02-06 11:57:52 -05:00
Clebert Suconic b03bcb5247 NO-JIRA Adding Test to validate clustering distribution under paging
No problems reported on this test.
I needed to validate rather if messages were being distributed correctly when either SNF or the final address itself was paged. Rather than throw away the test I decided to keep the validation here.
2024-02-06 10:57:29 -05:00
Ângelo Galvão 306b192e80 ARTEMIS-4630 Fix a typo in earlier commit 7ac6f4e99c
This closes #4811
2024-02-06 13:27:35 +00:00
Justin Bertram 6c251eaa78 ARTEMIS-4592 ignore more currently-invalid potential upgrades 2024-02-06 13:23:28 +00:00
Ângelo Galvão 7ac6f4e99c ARTEMIS-4630 Validate if the pid is really from Artemis
In rare cases the status is returning 'running' to a process that is
not Artemis. It was create a extra level of verification by validating
if the running process working directory is the
same of ${ARTEMIS_INSTANCE}.
2024-02-05 15:11:55 -06:00