[
https://issues.apache.org/jira/browse/ARTEMIS-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martyn Taylor resolved ARTEMIS-465.
-----------------------------------
Resolution: Fixed
Assignee: Martyn Taylor
> Large messages missed over replication
> --------------------------------------
>
> Key: ARTEMIS-465
> URL: https://issues.apache.org/jira/browse/ARTEMIS-465
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Martyn Taylor
> Assignee: Martyn Taylor
>
> The ReplicationEndpoint (in the backup) elies on the large message files sent
> over the cluster connection, to get an initial picture of the large messages
> on the live server. Subsequent large messages packets are forwarded to the
> ReplicationEndpoint. A large message being packet is sent when the journal
> first saves the large message pending packet, after this point the server
> forwards the large message continuation packets.
> The actual large message files are created lazily on the live server. Only
> when a large message continuation packet is received is the large message
> file created. This leaves a window where, before replication is started, a
> large message entry can be present in the journal (the large message begin
> has been received and store, but not forwarded to the backup, as it's not
> started) and no file is created on the live.
> If replication starts at this point, the backup builds up it's picture of the
> large messages based on the large message files, but is missing large
> messages from it's view (as they're in the journal on the live, but not
> stored in files). Subsequent large message continuation packets are then
> rejected by the backup as it does not recognise the large message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)