You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2022/08/20 03:56:00 UTC
[jira] [Resolved] (ARTEMIS-3947) Expiry settings not merging properly
[ https://issues.apache.org/jira/browse/ARTEMIS-3947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-3947.
-------------------------------------
Fix Version/s: 2.25.0
Resolution: Fixed
> Expiry settings not merging properly
> ------------------------------------
>
> Key: ARTEMIS-3947
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3947
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Fix For: 2.25.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Setting {{expiry-delay}} in {{<address-setting match="#">}} doesn't work if we set another property aside from {{expiry-delay}} and don't set {{expiry-delay}} in a specific match.
> *Test 1 - Fails*
> {code:xml}
> <address-setting match="#">
> <expiry-delay>40000</expiry-delay>
> </address-setting>
> <address-setting match="myAddress">
> <max-size-bytes>12428800</max-size-bytes>
> </address-setting>{code}
> Result: When I send a message to a queue on {{myAddress}} using the default expiration time (0 meaning don't expire), the broker doesn't change the expiration time to 40 seconds. *Messages never expire.*
> *Test 2 - OK*
> {code:xml}
> <address-setting match="#">
> <expiry-delay>40000</expiry-delay>
> </address-setting>
> <address-setting match="myAddress">
> <expiry-delay>60000</expiry-delay>
> </address-setting>{code}
> Result: When I send a message to a queue on {{myAddress}} using the default expiration time (0 meaning don't expire) the broker changes the expiration time to 60 seconds.
> *Test 3 - OK*
> {code:xml}
> <address-setting match="#">
> <expiry-delay>40000</expiry-delay>
> </address-setting>{code}
> Result: When I send a message to a queue on {{myAddress}} using the default expiration time (0 meaning don't expire) the broker changes the expiration time to 40 seconds.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)