10680 Commits

Author SHA1 Message Date
Robbie Gemmell
68155867b6 ARTEMIS-4832: direct test output to file, make results more visible
Archive test logs upon GHA CI job failure to allow inspection.

Output to console can be enabled on request with e.g:
  mvn test -Dmaven.test.redirectTestOutputToFile=false
2024-06-21 11:51:03 -04:00
Clebert Suconic
925e338874 ARTEMIS-4814 Speeding up WildcardAddressManagerUnitTest::testConcurrentCalls2
This test is spinning a concurrent call on getDirectBindings
Since I added a synchronization point to get the Bindings the test could
be taking up to 5 seconds, being a variance between 500ms and 5 seconds.

Adding Thread.sleep(1) on this loop solved  the issue as it is now letting other threads to do work
since I'm starting more executors than cores I have on my box.
2024-06-20 12:07:56 -04:00
Clebert Suconic
dba753bffc ARTEMIS-4814 Improve synchronization on SimpleAddressManager::getDirectBindings 2024-06-20 11:38:31 -04:00
Robbie Gemmell
229afee380 ARTEMIS-4831: consistently use surefire default behaviour around test failure
Use surefure default behaviour by default: fail module build when a test fails.

Anyone wanting to ignore failures so as to run all modules, can use the
standard surefire prop to request that, e.g:
  mvn test -Dmaven.test.failure.ignore
2024-06-20 11:03:07 -04:00
Justin Bertram
4c454e8abd ARTEMIS-4747 remove unreachable code 2024-06-19 20:23:55 -04:00
Justin Bertram
8d3508eaf2 ARTEMIS-4828 remove unused variables 2024-06-19 20:23:33 -04:00
Justin Bertram
80ec64c3d9 ARTEMIS-4827 remove unreachable or redundant code 2024-06-19 20:22:46 -04:00
Justin Bertram
be1459c939 ARTEMIS-4826 avoid implicit int conversion to long 2024-06-19 20:19:58 -04:00
Robbie Gemmell
6fe1997aec ARTEMIS-4822: update commons pom to avoid varying dependency-reduced replacement pom
Remove javadoc plugin config and execution from release profile, add fixed pluginManagement
config and build execution, leverage properties only in profile to govern whether it skips,
stops profile varying in shade-generated pom depending on mvn verion and profiles used.
2024-06-19 17:25:00 +01:00
Domenico Francesco Bruscino
cbdc197beb ARTEMIS-4823 Upgrade BouncyCastle to 1.78.1 2024-06-19 17:39:03 +02:00
Robbie Gemmell
ae8fd6dbdb ARTEMIS-4822: disable timestamps in PDF metadata, making it and artemis-website output reproducible 2024-06-19 10:02:20 +01:00
Josh Byster
166adf4bfb ARTEMIS-4814 Make direct binding lookup time constant
Currently, with 500K+ queues, the cleanup step of TempQueueCleanerUpper
requires invoking WildcardAddressManager#getDirectBindings, which is
O(k) in the number of queues.

From method profiling, this can consume up to 95% of our CPU time when
needing to clean up many of these.

Add a new map to keep track of the direct bindings, and add a test
assertion that fails if we don't properly remove it.
2024-06-18 21:32:20 -04:00
Clebert Suconic
ee9d016f6c NO-JIRA Adding test on WildcardAddressManagerUnitTest.java
No semantic changes here. Just keeping a test I wrote to verif something against PR #4972
2024-06-18 18:53:50 -04:00
Domenico Francesco Bruscino
e5e95f4a18 ARTEMIS-4818 Support classes with .class in the package 2024-06-18 13:05:29 +01:00
Domenico Francesco Bruscino
a10694f202 ARTEMIS-4818 Improve support for multiple broker plugins from broker properties 2024-06-18 11:17:44 +01:00
Justin Bertram
4967a0c4ba
NO-JIRA clarify CLI docs 2024-06-17 14:06:56 -05:00
Timothy Bish
c6f227cbb8 ARTEMIS-4820 Read Header TTL as unsigned integer to set expiration
When setting expiration on the AMQPMessage the AMQP header TTL value
should be read as an unsigned integer and as such should use the longValue
API of UnsignedInteger to get the right value to set expiration.
2024-06-17 13:32:43 -05:00
Timothy Bish
a6ff05ecd7 ARTEMIS-4817 Check policy credits before checking parent credits
When checking if address federation can be done the manager needs to look
at the policy level settings before looking at federation or connector
level settings for amqp credits.
2024-06-13 15:35:00 -07:00
Clebert Suconic
58e8deac2b ARTEMIS-2892 Interrupted replication could lead to restart problems 2024-06-13 17:48:29 -04:00
Clebert Suconic
165a93365c NO-JIRA Specifying default --commit-interval on transfer 2024-06-13 12:09:38 -04:00
Jeroen van Gorkum
b1c28d7bd4 ARTEMIS-4816: Docker image echo's admin credentials during startup
Signed-off-by: Jeroen van Gorkum
2024-06-13 11:40:08 -04:00
Clebert Suconic
106418dc74 NO-JIRA ReplayTest paging tests
No semantic changes in this commit,
I was just exploring the possibility of
issues with paging and large messages combined
and I decided to keep the test.
2024-06-13 10:21:36 -04:00
Clebert Suconic
7f038de9ad ARTEMIS-4667 Fixing replay manager with replication on the large message case 2024-06-12 18:49:35 -04:00
Clebert Suconic
dd6c74fc1c ARTEMIS-4667 ReplayManager does not work with replication
co-authored: Jean-Pascal Briquet provided the testcase
2024-06-12 17:57:36 -04:00
Clebert Suconic
f4fd259f07 [maven-release-plugin] prepare for next development iteration 2024-06-12 11:58:53 -04:00
Clebert Suconic
b4d3a77649 [maven-release-plugin] prepare release 2.35.0 2.35.0 2024-06-12 11:58:52 -04:00
Clebert Suconic
64f4d03f5e Version upgrade 2024-06-12 11:26:18 -04:00
Clebert Suconic
842a176a4e ARTEMIS-4815 json output into ./artemis queue stat 2024-06-12 11:26:18 -04:00
Justin Bertram
e3805bd05a ARTEMIS-4795 enforce queue filter when sending to FQQN 2024-06-12 08:26:11 -04:00
Clebert Suconic
4eb90765a7 ARTEMIS-4813 Large Message in replication / sync could lose part of the body
This is a regressio after ARTEMIS-4784
2024-06-12 00:31:22 -04:00
Justin Bertram
43e8009fb0
NO-JIRA fix small doc-related issues for id-cache-size 2024-06-11 16:42:47 -05:00
Emmanuel Hugonnet
2aff6504e1 ARTEMIS-4811 upgrade Netty to 4.1.111.Final
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
2024-06-11 16:12:26 -05:00
Clebert Suconic
178f2e4b4d ARTEMIS-4812 Avoid IntObject accumulation after Page is set as complete
this could lead to OME if a lazy consumer is there for a long time with all pages being removed.
2024-06-11 12:03:08 -04:00
Justin Bertram
220a5ae2aa ARTEMIS-4796 add tests & remove refs 2024-06-10 14:03:00 -07:00
Justin Bertram
14c564a481 ARTEMIS-4800 simplify QueueConfiguration API
This commit does the following:

 - deprecate all QueueConfiguration ctors
 - add `of` static factory methods for all the deprecated ctors
 - replace any uses of the normal ctors with the `of` counterparts

This makes the code more concise and readable.
2024-06-10 07:58:40 -07:00
Gary Tully
efdcc56519 NO-JIRA add transformer to bridge properties config test 2024-06-10 12:34:39 +01:00
Clebert Suconic
5be983392c ARTEMIS-4798 Use original message to calculate the Mirror SNF size in order to start paging 2024-06-07 11:10:12 -04:00
Timothy Bish
fad1f5274c ARTEMIS-4799 Fix broker connection receiver attach handling
The receiver attach in broker connection does not wait for the remote
attach to arrive before creating the broker side receiver plumbing which
leads to the broker treating the remote sender as an anonymous relay when
it is not and should not be. Await the remote attach in response to the
attach sent by the broker connection to finish the link setup but use the
locally defined target address vs the remote to route the incoming messages.
2024-06-07 11:21:42 +01:00
Justin Bertram
4fde81813c
NO-JIRA fix Jolokia doc link 2024-06-06 22:35:23 -05:00
Timothy Bish
ac1b483cb4 ARTEMIS-4801 Fix issue with caching address query results
When caching address query results the remote session can be blocked forever
from creating links on an address if the "does not exist" value is cached
since it is never updated again and will always report "does not exist" even
if the address is added manually via management later. The cache state can
cause other issues for long running sessions as well and should be removed
to avoid attach failures for cases where the current broker state could allow
the attach to succeed but the cached entry won't allow it.
2024-06-06 21:07:22 -04:00
Justin Bertram
7ca30e9a63 ARTEMIS-4796 simplify SimpleString API
This commit does the following:

 - deprecate the verbosely named `toSimpleString` static factory
   methods
 - add `of` static factory methods for all the ctors
 - replace any uses of the normal ctors with the `of` counterparts

This makes the code more concise and readable.
2024-06-06 11:53:03 -04:00
Clebert Suconic
047bc98cc3 NO-JIRA Reuse getMessageCount across RealServerTestBase 2024-06-05 17:33:02 -04:00
Justin Bertram
c378ef9da7
NO-JIRA fix flow-control doc formatting 2024-06-05 10:18:36 -05:00
Robbie Gemmell
4ebb2cd41a ARTEMIS-4790: switch to timeout declarations with default units, tweak a few values 2024-06-05 11:40:33 +01:00
Justin Bertram
de0f6ac8f5 ARTEMIS-4760 creating MQTT consumer should work if auto-create-queues is false 2024-06-05 09:06:53 +01:00
Timothy Bish
4daefbf138 ARTEMIS-4792 Allow consumer priority to be added to receiver link address
Allow the Source address to provide consumer priority on the address using the
same option value as a core consumer '?consumer-priority=X'. The change parses
any query string appended to an address and uses the address portion as the
actual receiver address and currently only looks at consumer priority values in
the extracted address query parameters and ignores any other options found. The
existing consumer priority taken from link properties takes precedence over the
value placed on the address query options if both are present.
2024-06-04 17:38:52 +01:00
Robbie Gemmell
f5ecc5e219 ARTEMIS-4790: un-nest test classes to simplify 2024-06-04 12:55:00 +01:00
Clebert Suconic
aade3b35f6 NO-JIRA Fixing intermittent test failures 2024-06-03 14:44:57 -04:00
Clebert Suconic
180e434b78 NO-JIRA Improving Test Reliability with max-read-page-bytes 2024-06-03 13:19:05 -04:00
Robbie Gemmell
8935b1150b ARTEMIS-4791: update to junit-5.10.2 2024-06-03 17:49:03 +01:00