You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2020/06/30 00:44:03 UTC

[activemq-artemis] 01/03: ARTEMIS-2819 Proper fix (previous fix was breaking the testsuite)

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 51d1ed4e11d29f6cb269e86c9f31b50d13f88a0f
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Sun Jun 28 11:40:50 2020 -0400

    ARTEMIS-2819 Proper fix (previous fix was breaking the testsuite)
---
 .../artemis/core/settings/impl/HierarchicalObjectRepository.java    | 2 +-
 .../tests/integration/management/ActiveMQServerControlTest.java     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
index 0cf9708..3ed69d0 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/settings/impl/HierarchicalObjectRepository.java
@@ -304,7 +304,7 @@ public class HierarchicalObjectRepository<T> implements HierarchicalRepository<T
                clearCache();
                wildcardMatches.remove(modMatch);
             } else {
-               cache.remove(modMatch);
+               clearCache();
                exactMatches.remove(modMatch);
             }
             onChange();
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java
index c181e07..afc70b4 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java
@@ -1313,7 +1313,7 @@ public class ActiveMQServerControlTest extends ManagementTestBase {
    public void testRemoveAddressSettingsEffective() throws Exception {
       ActiveMQServerControl serverControl = createManagementControl();
       String addr = "test";
-      String root = "#";
+      String root = "test.#";
 
       String DLA = "someDLA";
       String expiryAddress = "someExpiry";
@@ -1322,8 +1322,8 @@ public class ActiveMQServerControlTest extends ManagementTestBase {
       long maxExpiryDelay = 20000;
       boolean lastValueQueue = true;
       int deliveryAttempts = 1;
-      long maxSizeBytes = 20;
-      int pageSizeBytes = 10;
+      long maxSizeBytes = 10 * 1024 * 1024;
+      int pageSizeBytes = 1024 * 1024;
       int pageMaxCacheSize = 7;
       long redeliveryDelay = 4;
       double redeliveryMultiplier = 1;