Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3947

Expiry settings not merging properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.24.0
    • 2.25.0
    • None
    • None

    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

         <address-setting match="#">
            <expiry-delay>40000</expiry-delay>
         </address-setting>
         <address-setting match="myAddress">      
            <max-size-bytes>12428800</max-size-bytes>
         </address-setting>

      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

         <address-setting match="#">
            <expiry-delay>40000</expiry-delay>
         </address-setting>
         <address-setting match="myAddress">
            <expiry-delay>60000</expiry-delay>
         </address-setting>

      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

         <address-setting match="#">
            <expiry-delay>40000</expiry-delay>
        </address-setting>

      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.

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jbertram Justin Bertram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m