Details
-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.9.4.GA
-
False
-
None
-
False
-
Description
Setting expiry-delay as default in element <address-setting match="#"> doesn't work if we set another property different from expiry-delay and don't set expiry-delay in a specific match.
Test 1 - KO
Expiry-delay is setting in element <address-setting match="#"> in broker.xml:
<address-setting match="#"> ... <expiry-delay>40000</expiry-delay><!-- 40 seconds --> ... </address-setting>
Setting property not equal to expiry-delay in specific match in broker.xml:
<address-setting match="queueExample"> <max-size-bytes>12428800</max-size-bytes> </address-setting>
Expected result: When we send a message to the queueExample queue using the default expiration time (0 meaning don't expire) the broker changes the expiration time to 40 seconds
Actual result: When we send a message to the queueExample queue using the default expiration time (0 meaning don't expire), the broker doesn't change the expiration time to 40 seconds. Message never expire
Test2 - OK
Expiry-delay is setting in element <address-setting match="#"> in broker.xml:
<address-setting match="#"> ... <expiry-delay>40000</expiry-delay><!-- 40 seconds --> ... </address-setting>
Setting property expiry-delay in specific match in broker.xml:
<address-setting match="queueExample"> <expiry-delay>60000</expiry-delay><!-- 60 seconds --> </address-setting>
Expected result: When we send a message to the queueExample queue using the default expiration time (0 meaning don't expire), the broker changes the expiration time to 60 seconds because a specific match override setting in element <address-setting match="#">.
Actual result: When we send a message to the queueExample queue using the default expiration time (0 meaning don't expire), the broker changes the expiration time to 60 seconds because specific match override setting in element <address-setting match="#">.
Test 3 - OK
expiry-delay is setting in element <address-setting match="#"> in broker.xml:
<address-setting match="#"> ... <expiry-delay>40000</expiry-delay><!-- 40 seconds --> ... </address-setting>
Specific match for queueExample doesn't exist in broker.xml:
Expected result: When we send a message to the queueExample queue using the default expiration time (0 meaning don't expire), the broker changes the expiration time to 40 seconds using a setting in element <address-setting match="#">.
Actual result: When we send a message to the queueExample queue using the default expiration time (0 meaning don't expire), the broker changes the expiration time to 40 seconds using a setting in element <address-setting match="#">.