You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/08/15 16:50:00 UTC
[jira] [Work logged] (ARTEMIS-3940) MaxMessages and Page.policy fail is not working
[ https://issues.apache.org/jira/browse/ARTEMIS-3940?focusedWorklogId=800668&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-800668 ]
ASF GitHub Bot logged work on ARTEMIS-3940:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 15/Aug/22 16:49
Start Date: 15/Aug/22 16:49
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on code in PR #4178:
URL: https://github.com/apache/activemq-artemis/pull/4178#discussion_r945941354
##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MaxMessagesPagingTest.java:
##########
@@ -301,4 +314,120 @@ public void testMaxOnAddressHitGlobal() throws Exception {
}
}
+ @Test
+ public void testFailMaxMessage() throws Exception {
+ internalFailMaxMessge(false);
+ }
+
+ @Test
+ public void testFailMaxMessageGlobal() throws Exception {
+ internalFailMaxMessge(true);
+ }
+
+ private void internalFailMaxMessge(boolean global) throws Exception {
+ clearDataRecreateServerDirs();
+
+ Configuration config = createDefaultConfig(true);
+
+ HashMap<String, AddressSettings> settings = new HashMap<>();
+
+ AddressSettings set = new AddressSettings();
+ set.setAddressFullMessagePolicy(AddressFullMessagePolicy.FAIL);
+ if (global) {
+ config.setGlobalMaxMessages(10);
+ }
+
+ settings.put( "FAIL_MAX_MESSAGES_CORE", set);
+ settings.put( "FAIL_MAX_MESSAGES_OPENWIRE", set);
+ settings.put( "FAIL_MAX_MESSAGES_AMQP", set);
Review Comment:
... I will remove these lines.. forgot those hanging.
Issue Time Tracking
-------------------
Worklog Id: (was: 800668)
Remaining Estimate: 0h
Time Spent: 10m
> MaxMessages and Page.policy fail is not working
> -----------------------------------------------
>
> Key: ARTEMIS-3940
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3940
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Clebert Suconic
> Assignee: Clebert Suconic
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)