diff --git a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java index c6bec51254d0..e6bf69ec5920 100644 --- a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java +++ b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminServer.java @@ -575,7 +575,7 @@ private Map rsGroupGetRegionsInTransition(String groupName) Map>> result = Maps.newHashMap(); RSGroupInfo rsGroupInfo = getRSGroupInfo(groupName); Map>> assignments = Maps.newHashMap(); - for (Map.Entry entry: + for(Map.Entry entry: master.getAssignmentManager().getRegionStates().getRegionAssignments().entrySet()) { TableName currTable = entry.getKey().getTable(); ServerName currServer = entry.getValue(); @@ -588,8 +588,8 @@ private Map rsGroupGetRegionsInTransition(String groupName) } Map> serverMap = Maps.newHashMap(); - for (ServerName serverName: master.getServerManager().getOnlineServers().keySet()) { - if (rsGroupInfo.getServers().contains(serverName.getAddress())) { + for(ServerName serverName: master.getServerManager().getOnlineServers().keySet()) { + if(rsGroupInfo.getServers().contains(serverName.getAddress())) { serverMap.put(serverName, Collections.emptyList()); } }