[
https://issues.apache.org/jira/browse/ARTEMIS-4798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17853187#comment-17853187
]
ASF subversion and git services commented on ARTEMIS-4798:
----------------------------------------------------------
Commit 5be983392cf4ee102014d3dedf99bdae603cab51 in activemq-artemis's branch
refs/heads/main from Clebert Suconic
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=5be983392c ]
ARTEMIS-4798 Use original message to calculate the Mirror SNF size in order to
start paging
> Address Size differs between Mirror and Source queue, leading to OME scenarios
> ------------------------------------------------------------------------------
>
> Key: ARTEMIS-4798
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4798
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.34.0
> Reporter: Clebert Suconic
> Assignee: Clebert Suconic
> Priority: Major
> Fix For: 2.35.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Say you configure the broker to mirror.
> You stop the mirror target (shutdown the server).
> Now you send and consume from a destination, keeping the destination's size
> close to zero.
> You may get an OME on that situation.
> This is because the calculation on the address-size only computes the main
> body of the message at the original queue. While Mirror will only get a small
> portion on the reference, in such cases you would end up with lazy starts in
> paging... and things could go wrong.
> To fix that, both Mirror and the source queue should get the body portion of
> the size.
> Basically while we route the message, we check if the address is not the
> original and the Mirror SNF should also get the same portion of the size in
> its calculation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact