gtully commented on a change in pull request #3407:
URL: https://github.com/apache/activemq-artemis/pull/3407#discussion_r565397776
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
##########
@@ -3716,6 +3730,16 @@ private boolean deliver(final MessageReference ref) {
}
}
+ private void accountForChangeInMemoryEstimate(final MessageReference ref,
final int existingMemoryEstimate) {
+ final int delta = ref.getMessageMemoryEstimate() -
existingMemoryEstimate;
+ if (delta > 0) {
+ PagingStore pageStore = ref.getOwner();
+ if (pageStore != null) {
+ pageStore.addSize(delta);
Review comment:
thanks franz,
a core message won't have any delta that I am aware of, it's memory estimate
does not change, but you were in that space recently, does it change?
----------------------------------------------------------------
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:
[email protected]