diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java index 72f7dc437f8..496f0f907cc 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java @@ -421,9 +421,7 @@ public class ServerManager { */ public Map getOnlineServers() { // Presumption is that iterating the returned Map is OK. - synchronized (this.onlineServers) { - return Collections.unmodifiableMap(this.onlineServers); - } + return Collections.unmodifiableMap(this.onlineServers); }