activemq-artemis/artemis-server
Howard Gao 144a7c8a42 ARTEMIS-1220 Diverted LargeMessage file corrupted during replication
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.

(cherry picked from commit 045021f7df)
2017-07-25 11:52:28 -04:00
..
src ARTEMIS-1220 Diverted LargeMessage file corrupted during replication 2017-07-25 11:52:28 -04:00
pom.xml [maven-release-plugin] prepare for next development iteration 2017-05-08 21:00:29 -04:00