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 02:50:00 UTC
[jira] [Updated] (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 updated ARTEMIS-3947:
------------------------------------
Description:
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 we send a message to the {{myAddress}} queue 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>{code}
<address-setting match="myAddress">
<expiry-delay>60000</expiry-delay>
</address-setting>{code}
Result: When we 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 we 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.
> 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
>
> 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 we send a message to the {{myAddress}} queue 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>{code}
> <address-setting match="myAddress">
> <expiry-delay>60000</expiry-delay>
> </address-setting>{code}
> Result: When we 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 we 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)