diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java index b41fe2bc09f..9f4985d488b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java @@ -389,8 +389,8 @@ public class ReplicationSourceManager implements ReplicationListener { String logName = logPath.getName(); String logPrefix = DefaultWALProvider.getWALPrefixFromWALName(logName); // update replication queues on ZK - synchronized (replicationPeers) {// synchronize on replicationPeers to avoid adding source for - // the to-be-removed peer + // synchronize on replicationPeers to avoid adding source for the to-be-removed peer + synchronized (replicationPeers) { for (String id : replicationPeers.getPeerIds()) { try { this.replicationQueues.addLog(id, logName);