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 subversion and git services (Jira)" <ji...@apache.org> on 2022/08/20 03:52:00 UTC

[jira] [Commented] (ARTEMIS-3947) Expiry settings not merging properly

    [ https://issues.apache.org/jira/browse/ARTEMIS-3947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17582112#comment-17582112 ] 

ASF subversion and git services commented on ARTEMIS-3947:
----------------------------------------------------------

Commit f1c9e3df1415bbde0c93cd2960991517bcd83ce3 in activemq-artemis's branch refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=f1c9e3df14 ]

ARTEMIS-3947 fix merging for expiry address-settings


> 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 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)