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



##########
File path: 
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java
##########
@@ -971,6 +971,9 @@ protected synchronized void 
lazyScanAfterReloadPersistence() {
       scanMessageData();
       messageDataScanned = MessageDataScanningStatus.SCANNED.code;
       modified = false;
+      // reinitialise memory estimate as message will already be on a queue
+      // and lazy decode will want to update
+      getMemoryEstimate();

Review comment:
       wow.. nice catch!
   
   if this fixes the issue.. go for it! Merge it!




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