You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Robbie Gemmell (Jira)" <ji...@apache.org> on 2022/10/05 08:45:00 UTC

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

    [ https://issues.apache.org/jira/browse/ARTEMIS-3947 ]


    Robbie Gemmell deleted comment on ARTEMIS-3947:
    -----------------------------------------

was (Author: jira-bot):
Commit 5be1ea859913659cade6aa132aa2d999f4004844 in activemq-artemis's branch refs/heads/2.21.0.jbossorg-x from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=5be1ea8599 ]

ARTEMIS-3947 fix merging for expiry address-settings

(cherry picked from commit f1c9e3df1415bbde0c93cd2960991517bcd83ce3)

downstream: ENTMQBR-6695


> Expiry settings not merging properly
> ------------------------------------
>
>                 Key: ARTEMIS-3947
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3947
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.24.0
>            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)