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 2021/02/23 15:47:36 UTC

[GitHub] [activemq-artemis] clebertsuconic commented on a change in pull request #3464: ARTEMIS-3135 - track possible change in memory estimate when messages…

clebertsuconic commented on a change in pull request #3464:
URL: https://github.com/apache/activemq-artemis/pull/3464#discussion_r581151758



##########
File path: artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
##########
@@ -3733,16 +3733,6 @@ private boolean deliver(final MessageReference ref) {
       }
    }
 
-   private static void accountForChangeInMemoryEstimate(final MessageReference ref, final int existingMemoryEstimate) {
-      final int delta = ref.getMessageMemoryEstimate() - existingMemoryEstimate;
-      if (delta > 0) {

Review comment:
       what if the delta was lower?
   
   shouldn't you set messageMemoryEstimate, in case there are further changes on the message...
   
   (just to keep it ready for future usages, say a transformation)




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

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