You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2024/06/05 16:47:00 UTC

[jira] [Created] (ARTEMIS-4798) Address Size differs between Mirror and Source queue, leading to OME scenarios

Clebert Suconic created ARTEMIS-4798:
----------------------------------------

             Summary: 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
             Fix For: 2.35.0


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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact