[ 
https://issues.apache.org/jira/browse/ARTEMIS-3719?focusedWorklogId=740989&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-740989
 ]

ASF GitHub Bot logged work on ARTEMIS-3719:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Mar/22 16:09
            Start Date: 14/Mar/22 16:09
    Worklog Time Spent: 10m 
      Work Description: jbertram commented on a change in pull request #3984:
URL: https://github.com/apache/activemq-artemis/pull/3984#discussion_r826129291



##########
File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
##########
@@ -1975,19 +1970,14 @@ public void expire(final MessageReference ref) throws 
Exception {
 
    @Override
    public void expire(final MessageReference ref, final ServerConsumer 
consumer) throws Exception {
-      SimpleString messageExpiryAddress = expiryAddressFromMessageAddress(ref);
-      if (messageExpiryAddress == null) {
-         messageExpiryAddress = expiryAddressFromAddressSettings(ref);
-      }
-
-      if (messageExpiryAddress != null) {
+      if (addressSettings.getExpiryAddress() != null) {

Review comment:
       I looked at the commit for that change and it wasn't clear what it was 
for since there was no test associated with it. You added a test for it later 
(i.e. `o.a.a.a.t.i.c.d.ExpireWhileLoadBalanceTest`) which I ran after my 
changes and it succeeded. It looked like a semantic change, but I couldn't 
verify it with any existing test. It's still not clear to me what the desired 
behavior would be for messages that expire in a SnF queue. Are they supposed to 
go to the expiry address configured for where they were originally sent? If so, 
it's not clear to me why that's better than going to the expiry address 
configured for the SnF.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 740989)
    Time Spent: 40m  (was: 0.5h)

> Dead-letter and expiry address not applied when using temp-queue-namespace
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3719
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3719
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to