You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by GitBox <gi...@apache.org> on 2022/03/14 16:09:18 UTC

[GitHub] [activemq-artemis] jbertram commented on a change in pull request #3984: ARTEMIS-3719 DLA and expiry incorrect w/temp-queue-namespace

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: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org