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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact