Commit Graph

1805 Commits

Author SHA1 Message Date
Justin Bertram f5d5710133 ARTEMIS-2834 leaking meters
Move all of the meter registration code into the ManagementServer
implementation to provide better life-cycle management.
2020-07-07 08:18:28 -04:00
Justin Bertram fd207e75b0 ARTEMIS-2829 wrong return type for getDiskStoreUsage
Since getDiskStoreUsage on the ActiveMQServerControl is converting a
double to a long the value is always 0 in the management API. It should
return a double instead.
2020-07-07 08:18:28 -04:00
Justin Bertram cb7cd729d7 ARTEMIS-2828 add addressSize metric
Adding this metric required moving the meter registration code from the
AddressInfo class to the ManagementService in order to get clean access
to both the AddressInfo and AddressControl classes.
2020-07-07 08:18:28 -04:00
Justin Bertram 73c4e399d9 NO-JIRA clarify diskStoreUsage description 2020-07-07 08:18:28 -04:00
Justin Bertram ac8ffedf66 ARTEMIS-2827 add addressMemoryUsagePercentage as metric 2020-07-07 08:18:28 -04:00
Justin Bertram 26091f1907 ARTEMIS-2825 wrong calc for DiskStoreUsagePercentage
The calculation used by
ActiveMQServerControlImpl.getDiskStoreUsagePercentage() is incorrect. It
uses disk space info with global-max-size which is for address memory.
Also, the existing getDiskStoreUsage() method *already* returns a
percentage of total disk store usage so this method seems redundant.
2020-07-07 08:18:28 -04:00
Clebert Suconic 3f99c4b846 ARTEMIS-2797 Fixing updateQueue on filter / fixing ActiveMQServerControlTest 2020-07-06 21:45:27 -04:00
Jan Šmucr 6cc370e169 ARTEMIS-2797 Fixing redeploy mechanism
Queue settings are reset to their default values upon broker.xml reload ONLY.
Regular calls to PostOfficeImpl#updateQueue are no longer affected.
2020-07-06 15:02:03 -04:00
Clebert Suconic 257d353896 ARTEMIS-2797 Logging redeployment errors and speeding RedeployTest 2020-07-01 08:33:01 -04:00
Clebert Suconic 3d746d3b23 NO-JIRA Speeding test and intermittent failure 2020-06-29 21:45:13 -04:00
Clebert Suconic f79a4be4c1 ARTEMIS-2831 Avoiding StackOverFlowException when setDLAOnNoRoute(true) 2020-06-29 16:50:00 -04:00
Clebert Suconic 51d1ed4e11 ARTEMIS-2819 Proper fix (previous fix was breaking the testsuite) 2020-06-29 15:37:55 -04:00
Jan Šmucr 85e07a8afe ARTEMIS-2820 Undeploy diverts by removing them from broker.xml 2020-06-24 22:01:56 +01:00
Keith Wall efb1bd3f9f ARTEMIS-2819 exact match address setting removal ineffective 2020-06-24 12:54:05 -05:00
Jan Šmucr 5070e7a72c ARTEMIS-2797 - Reset queue properties by unsetting them in broker.xml
Now it is possible to reset queue parameters to their defaults by removing them
from broker.xml and redeploying the configuration.

Originally this PR covered the "filter" parameter only.
2020-06-23 11:20:03 +02:00
Havret 3e394b45e9 ARTEMIS-2815: Fix null pointer exception on attempt to update queue without filter 2020-06-23 09:36:45 +01:00
Clebert Suconic c54ff4c859 NO-JIRA fixing Intermittent failure on test 2020-06-22 20:42:29 -04:00
Robbie Gemmell ccc01ac4e5 ARTEMIS-2813: add JUnit assumption check, in case class runs within manually -Dtest=<foo> set 2020-06-22 13:08:13 +01:00
Robbie Gemmell 50bf1efeef ARTEMIS-2813: also exclude Core client kerberos-via-TLS test that can never work on JDK11+ as the ciphers were removed 2020-06-19 14:55:27 +01:00
Robbie Gemmell 932544f832 ARTEMIS-2813: only run the kerberos tests on JDK8 for now 2020-06-19 10:44:03 +01:00
Justin Bertram 0908cac668 ARTEMIS-2810 support all address-settings via mgmnt 2020-06-18 09:15:53 -04:00
Emmanuel Hugonnet efe0f468de ARTEMIS-2109: Updating the build to be able to execute it on Java 11 and Java 8. 2020-06-11 18:50:01 +01:00
Robbie Gemmell 4641dedad6 ARTEMIS-2799: satisfy checkstyle to get tests working 2020-06-11 11:03:01 +01:00
Jacob Middag ba674fb842 ARTEMIS-2799 sniHost property not allowed on URLs 2020-06-10 16:35:12 -05:00
Justin Bertram e1d8f42cc1 ARTEMIS-2798 expiration for AMQP msgs not reloaded 2020-06-09 15:18:45 -04:00
Michael Pearce 99f6c7bf20 ARTEMIS-2787 - Add ability to disable and enable a queue
Add feature
Add tests
Add docs
Add missing bits noticed in ring-size
Address comments
2020-06-08 18:02:48 -04:00
gtully 1a5b1fbe8e ARTEMIS-2788 clear openwire producer state on produce close event 2020-06-03 13:33:18 +01:00
Justin Bertram 7096bc187a ARTEMIS-2649 always over-write ORIG message props
ORIG message propertes like _AMQ_ORIG_ADDRESS are added to messages
during various broker operations (e.g. diverting a message, expiring a
message, etc.). However, if multiple operations try to set these
properties on the same message (e.g. administratively moving a message
which eventually gets sent to a dead-letter address) then important
details can be lost. This is particularly problematic when using
auto-created dead-letter or expiry resources which use filters based on
_AMQ_ORIG_ADDRESS and can lead to message loss.

This commit simply over-writes the existing ORIG properties rather than
preserving them so that the most recent information is available.
2020-06-01 15:19:34 -04:00
Francesco Nigro 6db63acee2 ARTEMIS-2785 test Netty direct ByteBuf memory leak due to compression 2020-06-01 11:12:37 -04:00
Justin Bertram 0443128b81 ARTEMIS-2783 user not set on shared queue 2020-05-28 16:38:26 -04:00
Clebert Suconic 39b3dd1044 ARTEMIS-2781 Adding getAllQueueNames; fixing tests 2020-05-28 16:36:59 -04:00
Clebert Suconic 06276ff26f NO-JIRA Fixing intermittent failure on PagingReceiveTest 2020-05-28 12:41:19 -04:00
brusdev 9a7620fd71 ARTEMIS-2770 Update diverts using the management API 2020-05-26 20:31:19 -04:00
Justin Bertram fd11a1e079 ARTEMIS-2781 return only local queue names for AddressControl.getQueueNames() 2020-05-26 17:30:38 -05:00
Clebert Suconic 4a25cc9c59 ARTEMIS-2775 Cleaning up activemq5-unit-ests
Some tests that are ignored, were never really operational.
2020-05-21 17:00:45 -04:00
brusdev 3bcea4e78e ARTEMIS-2774 Remove the divert transformer on divert destroying 2020-05-21 16:27:54 -04:00
Justin Bertram 4b7b612eb9 ARTEMIS-2771 support JVM GC & thread metrics 2020-05-20 15:53:15 -04:00
Clebert Suconic faa83b2ba6 [maven-release-plugin] prepare for next development iteration 2020-05-16 18:38:47 -04:00
Clebert Suconic 5f49d89264 [maven-release-plugin] prepare release 2.13.0 2020-05-16 18:38:34 -04:00
Clebert Suconic 83c7942a78 ARTEMIS-2766 Fixing AMQP Large Messages after Parsing change 2020-05-15 17:57:00 -04:00
Clebert Suconic c99fcd501b [maven-release-plugin] prepare for next development iteration 2020-05-15 16:42:54 -04:00
Clebert Suconic 47fafac760 [maven-release-plugin] prepare release 2.13.0 2020-05-15 16:42:41 -04:00
Clebert Suconic 9ff3c17525 ARTEMIS-2757 improving flow control in AMQP 2020-05-15 16:12:07 -04:00
Justin Bertram 3bd0d8bf38 ARTEMIS-2758 support disabling metrics per address 2020-05-14 15:16:23 -04:00
brusdev 71d311322a ARTEMIS-2759 Warn ignored connection factory URI parameters 2020-05-14 09:04:49 -04:00
Clebert Suconic 4fe4220ff0 ARTEMIS-2372 / ARTEMIS-2740 Improving Message Annotations support in AMQP
- when sending messages to DLQ or Expiry we now use x-opt legal names
- we now support filtering thorugh annotations if using m. as a prefix.
- enabling hyphenated_props: to allow m. as a prefix
2020-05-13 10:55:36 -04:00
Christopher L. Shannon (cshannon) 80ce96768e ARTEMIS-2752: Properly cleanup Federated Address Divert consumers
DivertBindings are now properly cleaned up when a queue binding is
removed that matches the divert. The correct key is now used to remove
the queue address from the set and the correct address is now used to
remove the remote consumer.
2020-05-11 14:56:24 -04:00
Atri Sharma 35e1d4e679 ARTEMIS-2709: Fix LiveToLiveFailoverTest::scaleDownDelay
Test fails with the primary server being killed by the crash and the backup server is killed
by the tearDown before ScaleDownHandler can kick in. This commit adds a wait method to allow
ScaleDownHandler to process before the test completes.
2020-05-11 14:50:59 -04:00
Clebert Suconic c20d894e81 ARTEMIS-2753 Fixing OpenWire Temporary queue names over wildcard configurations 2020-05-06 23:24:24 -04:00
Michael Pearce ed4086c687 ARTEMIS-2534 Adding additional test for OpenWire and TempQueue 2020-05-05 18:19:11 -04:00
Clebert Suconic 863f0298d5 NO-JIRA Fixing intermittent failure (Wait condition) 2020-05-04 18:50:24 -04:00
Clebert Suconic 974423e0d2 NO-JIRA fixing test
AmqpExpiredMessageTest will expire messages, eventually the counter could be 0
so it is invalid to assertEquals(1, queue.getMessageCount()) as it will be 0 eventually.
2020-05-04 15:31:20 -04:00
Andy Taylor 2ab381565c ARTEMIS-2749 - Broadcast Group Control Improvements
https://issues.apache.org/jira/browse/ARTEMIS-2749
2020-05-04 16:20:08 +01:00
Andy Taylor 8a04ee07de ARTEMIS-2648 - audit logging improvements
https://issues.apache.org/jira/browse/ARTEMIS-2648
2020-05-04 15:19:08 +01:00
Justin Bertram ede2051960 ARTEMIS-2655 support auto-creation w/FQQN & STOMP 2020-05-01 13:40:24 -05:00
Justin Bertram 29d9443a1e ARTEMIS-2680 use q name for addr if none specified via config 2020-05-01 13:23:50 -05:00
Justin Bertram 0b155cf5ea ARTEMIS-2666 mngmnt for duplicate ID cache 2020-05-01 13:13:45 -05:00
Clebert Suconic 4ca6bac92d NO-JIRA Fixing Test
There's no semantic changes here, hence NO-JIRA
2020-05-01 13:39:33 -04:00
Justin Bertram ea09a0fd39 ARTEMIS-2638 retro resources created recursively w/# match 2020-05-01 11:56:02 -05:00
Clebert Suconic 2a7320bffd NO-JIRA test retry 2020-04-30 21:57:25 -04:00
Justin Bertram d53b2bcef6 ARTEMIS-2745 queue registering wrong metrics 2020-04-30 14:53:36 -05:00
Justin Bertram 803ccf7229 ARTEMIS-2743 Synchronize JMS connection methods 2020-04-29 18:00:57 -04:00
brusdev aaa209dc45 ARTEMIS-2744 Fix karaf mvn repositories for ArtemisFeatureTest
Use https Maven Central URLs to fix ArtemisFeatureTest.
2020-04-29 21:09:53 +02:00
Clebert Suconic ea2edfbb7d NO-JIRA Intermittent failures fix 2020-04-29 09:05:50 -04:00
Clebert Suconic 4c28297685 ARTEMIS-2741 Passing call timeout to cluster connection bridge
This one should improve eventual failures on ClusterConnectionControlTest
to validate this, run ClusterConnectionControlTest::testNotifications in a loop

you will see eventually the test taking longer to shutdown the executor as the call could be blocked.
2020-04-28 22:56:21 -04:00
Clebert Suconic b27f381389 ARTEMIS-2372 Fixing test 2020-04-28 21:48:21 -04:00
Clebert Suconic 54c4611229 NO-JIRA test output cleanup 2020-04-28 21:48:21 -04:00
Clebert Suconic e42d50cdc3 NO-JIRA speed up SecureConfigurationTest 2020-04-28 21:46:15 -04:00
Justin Bertram 6709883d0e ARTEMIS-2738 implement per-acceptor security domains 2020-04-28 21:45:38 -04:00
Clebert Suconic 2ebf3c8e1b ARTEMIS-2372 Filtering on Message Annotations 2020-04-28 11:18:30 -04:00
Clebert Suconic d116cb96de NO-JIRA Intermittent fixes 2020-04-24 10:14:26 -04:00
Clebert Suconic c883a73746 NO-JIRA Fixing intermittent failure 2020-04-23 22:28:13 -04:00
Clebert Suconic bddb67cd9a NO-JIRA Removing log.info on tests 2020-04-23 22:04:13 -04:00
Justin Bertram 4b97e06890 ARTEMIS-2726 implement min/max expiry-delay 2020-04-23 17:56:51 -04:00
Clebert Suconic e8d23f3144 NO-JIRA Retry test on intermittent failure 2020-04-23 16:51:22 -04:00
Clebert Suconic 7a0b0fd8a6 NO-JIRA Fixing checkstyle 2020-04-22 23:41:44 -04:00
Clebert Suconic 3541ebf218 ARTEMIS-2732 Cleanup on testsuite logging 2020-04-22 23:08:46 -04:00
Clebert Suconic 101db39d46 NO-JIRA Fixing intermittent failures 2020-04-22 23:08:45 -04:00
Clebert Suconic 11a3e810bb [maven-release-plugin] prepare for next development iteration 2020-04-21 17:06:21 -04:00
Clebert Suconic 30272e0c2f [maven-release-plugin] prepare release 2.12.0 2020-04-21 17:06:08 -04:00
Clebert Suconic 83977bda9b NO-JIRA speeding up MultipliedDelayedMessageTest 2020-04-21 15:55:48 -04:00
Clebert Suconic bdff832ab2 ARTEMIS-2730 Ignoring AuditLoggerTest as it needs to be moved 2020-04-21 14:05:03 -04:00
Clebert Suconic daeec3e7ab NO-JIRA intermittent failures 2020-04-21 14:05:03 -04:00
Clebert Suconic 964198494b NO-JIRA intermittent failure fix 2020-04-20 19:23:39 -04:00
Clebert Suconic ba3d638149 NO-JIRA retry-tests 2020-04-20 14:40:46 -04:00
brusdev 1d8e9f7fff ARTEMIS-2724 The setting auto-delete-created-queues doesn't work
Set the default auto-delete for created queues.
2020-04-20 14:16:37 -04:00
Clebert Suconic 576e01dba6 ARTEMIS-2725 Implementing retries policy on tests 2020-04-20 11:41:20 -04:00
Clebert Suconic d81c0f44eb NO-JIRA Fixing intermittent failures 2020-04-20 11:38:03 -04:00
Clebert Suconic 91a4ef4c20 ARTEMIS-2722 Separate tests for FileLockNodeManager from FailoverTest 2020-04-17 22:39:44 -04:00
Clebert Suconic a000164169 ARTEMIS-2721 Activation keeps retrying even after server.stop()
This won't be an issue on a real server (Production system)

however, on the testsuite or while embedded this could cause issues,
if a same instance is stopped then started.

This is the reason why BackupAuthenticationTest was intermittently failing.

I also adapted the test since I would need to stop the server and reactivate it in order to change the configuration.
The previous test wasn't acting like a real server.
2020-04-17 18:26:22 -04:00
Clebert Suconic 7314cc7ae9 NO-JIRA Fixing intermittent failure on QueueAutoDeleteTest 2020-04-17 17:26:33 -04:00
Clebert Suconic 2ac0e43efb NO-JIRA fixing intermittent failure on RetroactiveAddressTest 2020-04-17 16:53:37 -04:00
Clebert Suconic 636ff8a9c8 NO-JIRA Speeding up tests 2020-04-16 21:57:32 -04:00
Clebert Suconic d231e2ac63 [maven-release-plugin] prepare for next development iteration 2020-04-16 16:16:41 -04:00
Clebert Suconic 9636f4a3b0 [maven-release-plugin] prepare release 2.12.0 2020-04-16 16:16:28 -04:00
Clebert Suconic c2c27bf601 NO-JIRA Fixing tests that were changing logging configurations 2020-04-16 15:53:39 -04:00
Clebert Suconic 806b8d3217 NO-JIRA Speedup PageCountSyncOnNonTX 2020-04-16 13:33:11 -04:00
Clebert Suconic 6e611d8c14 NO-JIRA Fixing intermittent failure on AutoDeleteJmsDestinationTest 2020-04-16 13:23:30 -04:00
Clebert Suconic d809976e4e NO-JIRA Fixing LargeMessageTest::testPendingRecord 2020-04-16 12:13:19 -04:00
Clebert Suconic 0abe7e7bc0 NO-JIRA Fixing intermittent failures on BridgeTest 2020-04-16 12:02:55 -04:00