11320 Commits

Author SHA1 Message Date
Justin Bertram
458292c083 ARTEMIS-5302 extra fixes for using QueueConfiguration more 2025-02-14 16:51:36 -05:00
Justin Bertram
d30a428594 ARTEMIS-5235 bump commons-beanutils:commons-beanutils from 1.10.0 to 1.10.1 2025-02-14 11:21:55 -06:00
Timothy Bish
272298fe82 ARTEMIS-5304 Allow delayed close of federation consumers
When demand is removed from a federation consumer and the AMQP link is
drained allow the consumer to idle for a configurable time period before
closing the link. If demand returns before the idled link is closed we
can recover the link by simply granting more credit.
2025-02-14 15:51:08 +00:00
Justin Bertram
5f83560229 ARTEMIS-5282 remove deprecated queue-related methods
All but one QueueImpl constructor was deprecated years ago in
2efa44daf52994790737e21ee29ae830f8f0a12c. Since QueueImpl is an
internal implementation object (as the name suggests) these
constructors can be completely removed and didn't technically need to
be deprecated in the first place.

Furthermore, the methods from QueueFactoryImpl which use these
constructors were also deprecated in that same commit. Despite the fact
that there is a QueueFactory interface these objects are still for
internal use/implementation. Therefore, these deprecated methods can and
should be removed.
2025-02-14 11:53:56 +00:00
Domenico Francesco Bruscino
6dd88378c1 ARTEMIS-5308 Replicate journal after local checks
Say there's an issue with the record on the local journal, it would fail on the local journal before reaching the replica.
2025-02-13 17:06:33 -05:00
Justin Bertram
00f69a18d8 ARTEMIS-5302 use QueueConfiguration more
There are several places across the code-base that repeat all the
configuration parameters of a queue. This commit simplifies the code
and increases readability by using o.a.a.a.a.c.QueueConfiguration as
often as possible.
2025-02-13 16:32:25 -05:00
Justin Bertram
6f15e33642 ARTEMIS-5312 reduce build-time warnings for JavaDoc
There are number of warnings related to JavaDoc during the build. This
commit adjusts a handful of specifica JavaDoc comments to eliminate
warnings about empty <p> tags. It also modifies the configuration of the
Maven JavaDoc plugin to categorically prevent warnings about "missing"
JavaDoc comments on public methods, etc.
2025-02-13 16:32:12 -05:00
Justin Bertram
e0c63ca462 ARTEMIS-5280 metrics manager doesn't inspect temp queue namespace 2025-02-13 13:08:03 +01:00
Howard Gao
4e5fd4a585 ARTEMIS-5002 AMQP producer not unblock if the disk space is freed 2025-02-12 17:01:21 -05:00
Justin Bertram
9d5fecac77 ARTEMIS-5309 bump commons-logging:commons-logging from 1.3.4 to 1.3.5 2025-02-12 12:03:16 -06:00
Justin Bertram
9494681260 ARTEMIS-5245 bump io.micrometer:micrometer-core from 1.14.3 to 1.14.4 2025-02-12 12:01:25 -06:00
Christian Ortlepp
a6cb1b283b ARTEMIS-5292 introduce jakarta version of artemis-cdi-client
Introduces artemis-jakarta-cdi-client, a jakarta version of artemis-cdi-client.
2025-02-12 17:33:07 +00:00
Clebert Suconic
1e57df4cbd ARTEMIS-5294 Adjusting size to 100K on String.repeat 2025-02-12 11:52:16 -05:00
Justin Bertram
957ebcbb65 ARTEMIS-5306 remove unused class
All references to this class were removed in
db94b18b731544aca57cd4daf9f8a8aeddee58af. Therefore, this class is safe
to remove.
2025-02-12 15:54:11 +00:00
Justin Bertram
9eba887142 ARTEMIS-5298 refactor RandomUtil
There is lots of duplicated code across the code-base creating random
String objects of various lengths. These can be eliminated by
implementing a simple utility method in RandomUtil. Also, other methods
in RandomUtil can be renamed to be more clear.
2025-02-12 15:54:11 +00:00
Justin Bertram
31cb265c89 ARTEMIS-5294 more cases for String.repeat() 2025-02-12 15:54:11 +00:00
Justin Bertram
009f909b41 ARTEMIS-5299 prefer StringBuilder over StringBuffer
StringBuffer is equivalent to StringBuffer but without thread safety
which isn't needed in most cases.
2025-02-12 15:54:11 +00:00
Justin Bertram
5e080aa369 ARTEMIS-5297 extract common code from if branches 2025-02-12 15:54:11 +00:00
Justin Bertram
7aea998bb7 ARTEMIS-5297 fix duplicate conditions 2025-02-12 15:54:11 +00:00
Justin Bertram
c5479cb856 ARTEMIS-5297 combine redundant conditionals 2025-02-12 15:54:11 +00:00
Justin Bertram
8ee9e7822e ARTEMIS-5297 fix typo in condition 2025-02-12 15:54:11 +00:00
Justin Bertram
27feb5d54e ARTEMIS-5297 remove duplicate if statements 2025-02-12 15:54:11 +00:00
Justin Bertram
0082dfb01d ARTEMIS-5278 use pattern matching for instanceof 2025-02-12 15:54:11 +00:00
Justin Bertram
d587a077f6 ARTEMIS-5295 use switch expressions where possible 2025-02-12 15:54:11 +00:00
Justin Bertram
3d7970d717 ARTEMIS-5294 use String.repeat() where possible 2025-02-12 15:54:11 +00:00
Justin Bertram
e7f48fe359 ARTEMIS-5293 use Files.readString() & Files.writeString() where possible 2025-02-12 15:54:11 +00:00
Robbie Gemmell
e3768fea01 ARTEMIS-5228: Update to Netty 4.1.118 (and netty-tcnative test dep to 2.0.70.Final) 2025-02-11 17:09:00 +00:00
Clebert Suconic
d4004eb2c6 ARTEMIS-5232 Removing dodgy test
this test was failing here:

362dbd11ac/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/client/SlowLargeMessageConsumerTest.java (L81)

Any sort of GC / compilation / hickup.. anything will make this test fail.

I don't see much value on the test. Anyone who disagrees with me, please send a PR / commit fixing the test instead of removing it.  :)
2025-02-11 10:21:15 -05:00
Justin Bertram
da03ca7cd4 ARTEMIS-5231 bump commons-codec:commons-codec from 1.17.2 to 1.18.0 2025-02-07 09:44:38 -06:00
Justin Bertram
c4cc73defa ARTEMIS-5300 bump org.apache.commons:commons-pool2 from 2.12.0 to 2.12.1 2025-02-07 09:40:21 -06:00
Justin Bertram
2e18a8b47a ARTEMIS-5300 bump org.jline:jline from 3.28.0 to 3.29.0 2025-02-07 09:30:58 -06:00
Justin Bertram
7c8110cb14 ARTEMIS-5243 bump owasp.version from 11.1.1 to 12.0.2 2025-02-07 09:28:42 -06:00
Justin Bertram
54f93c7e77 ARTEMIS-5291 simplify assertions 2025-02-05 17:15:55 +00:00
Justin Bertram
c8ca8c0ae4 ARTEMIS-5290 order JUnit assertEquals arguments properly 2025-02-05 17:15:55 +00:00
Justin Bertram
3578d562bd ARTEMIS-5289 throw single exception from tests 2025-02-05 17:15:55 +00:00
Justin Bertram
5a914b0dfe ARTEMIS-5288 use appropriate visibility for tests 2025-02-05 17:15:55 +00:00
Justin Bertram
8d8ec3a5ff ARTEMIS-5287 use static for fields annotated by @RegisterExtension 2025-02-05 17:15:55 +00:00
Justin Bertram
6f0e243ec5 ARTEMIS-5286 don't mix JUnit 4 & 5 in the same test 2025-02-05 17:15:55 +00:00
Justin Bertram
d029fd463f ARTEMIS-5139 improve locking on TypedProperties
Back in 8e40b2d4f4f242271d3dfcda4f9b96d3f94cee1b thread safety was added
to TypedProperties by synchronizing all relevant methods. This was
simple and effective but suffers from performance issues in read-heavy
use-cases.

This commit improves the performance by using a read/write locking
mechanism so reads can execute concurrently.

No new tests were added since the original commit added tests to verify
thread safety.
2025-02-04 13:39:39 -08:00
Justin Bertram
582000ce98
NO-JIRA correct voting mechanics doc 2025-02-03 20:58:21 -06:00
Justin Bertram
89b47615ec ARTEMIS-5100 support modifying journal-max-io on 'create' CLI command 2025-01-31 17:30:45 +00:00
Timothy Bish
f3102feb0d ARTEMIS-5279 Add remote federation views to management services
Provide remote broker connections management beans that mirror the
management objects added on the local broker when AMQP federation is
configured and the connection is active.
2025-01-31 17:29:30 +00:00
Timothy Bish
1633b8bf7e ARTEMIS-5215 Credit handler reset in progress flag when stopped
When a pull mode federation consumer is stopped due to demand being
removed and the credit tup-up handler is also awaiting the Queue backlog
to clear in order to grant a new batch of credit it might exit that
cycle an leave the in-progress flag set to true. Currently this likely
won't trigger a stuck consumer but if the code was to be altered to hold
open a link for some period of time before fully closing in order to
avoid needless attach / detach cycles then it would be possible for the
credit replenishment to get stuck because the previous attempt left the
in-progress flag set to true.
2025-01-31 10:34:26 +00:00
Justin Bertram
d54c771b2c ARTEMIS-5281 use isEmpty() where possible 2025-01-30 17:37:25 +00:00
Justin Bertram
29e800f76a NO-JIRA fix testSimpleCursorIteratorLargeMessage 2025-01-30 17:37:25 +00:00
Justin Bertram
0aa9c2d6ea ARTEMIS-5271 eliminate unused variables 2025-01-30 17:37:25 +00:00
Justin Bertram
9af357bae0 ARTEMIS-5278 use pattern matching for instanceof 2025-01-30 17:37:25 +00:00
Justin Bertram
134f1a90fe ARTEMIS-5276 use text blocks where possible 2025-01-30 17:37:25 +00:00
Justin Bertram
b49041ac7d ARTEMIS-5275 use line separator method instead of property 2025-01-30 17:37:25 +00:00
Justin Bertram
1a7da3a33e ARTEMIS-5274 use lambdas where possible 2025-01-30 17:37:25 +00:00