You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Martyn Taylor (JIRA)" <ji...@apache.org> on 2016/04/04 12:38:25 UTC

[jira] [Created] (ARTEMIS-465) Large messages missed over replication

Martyn Taylor created ARTEMIS-465:
-------------------------------------

             Summary: 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


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)