gemmellr commented on code in PR #4827:
URL: https://github.com/apache/activemq-artemis/pull/4827#discussion_r1499518163


##########
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/connect/mirror/AMQPMirrorControllerSource.java:
##########
@@ -281,6 +300,15 @@ public void sendMessage(Transaction tx, Message message, 
RoutingContext context)
             return;
          }
 
+         if (snfQueue.getPagingStore().page(message, tx, pagedRouteContext, 
this::copyMessageForPaging)) {
+            return;
+         }
+
+         if (message.isPaged()) {
+            // if the source was paged, we copy the message
+            message = copyMessageForPaging(message);
+         }

Review Comment:
   ok. I think the 2 if's should cover that quickly in the comments, its not 
obvious now so it definitely wont be later.
   
   Also, thinking....Does any of this changing the ID stuff affect things in 
terms of acking later, or what happens when the destination broker is itself 
mirroring? E.g I see its setting an 'extra property'.. are those persisted? Or 
passed on if the message isnt reencoded? If the broker restarts before the 
message gets sent, does that change what the representation of this copied 
paged message actually is?



-- 
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]

Reply via email to