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 2018/02/26 17:04:05 UTC

[jira] [Resolved] (ARTEMIS-1220) Diverted LargeMessage file corrupted during replication

     [ https://issues.apache.org/jira/browse/ARTEMIS-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martyn Taylor resolved ARTEMIS-1220.
------------------------------------
    Resolution: Fixed

> Diverted LargeMessage file corrupted during replication
> -------------------------------------------------------
>
>                 Key: ARTEMIS-1220
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1220
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 1.5.5, 2.1.0
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>            Priority: Major
>             Fix For: 2.2.0, 1.6.0
>
>
> When a large message is being diverted, a new copy of the original message is created and replicated (if there is a backup) to the backup. 
> In LargeServerMessageImpl.copy(long) it reuse a byte array to copy message body. It is possible that one block of date is read into the byte array before the previous read has been replicated, causing the replicated bytes to corrupt.
> If we make a copy of the byte array before replication, the corruption of data will be avoided.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)