diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java index fed4805bcd..4d8161316f 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/replication/ReplicationEndpoint.java @@ -337,7 +337,7 @@ public final class ReplicationEndpoint implements ChannelHandler, ActiveMQCompon this.channel = channel; } - private void finishSynchronization(String liveID) throws Exception { + private synchronized void finishSynchronization(String liveID) throws Exception { if (logger.isTraceEnabled()) { logger.trace("BACKUP-SYNC-START: finishSynchronization::" + liveID); }