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 0dac2cbd0d..5a01bf7212 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 @@ -336,7 +336,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); }