HBASE-25699 [branch-1] UnsupportedOperationException in DumpClusterStatusAction (#3094)
Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
parent
7652bef985
commit
87527d62ad
|
@ -63,7 +63,7 @@ public class DumpClusterStatusAction extends Action {
|
|||
*/
|
||||
private static Set<Address> collectKnownRegionServers(final ClusterStatus clusterStatus) {
|
||||
final Set<Address> regionServers = new HashSet<>();
|
||||
final Set<ServerName> serverNames = clusterStatus.getLiveServersLoad().keySet();
|
||||
final Set<ServerName> serverNames = new HashSet<>(clusterStatus.getLiveServersLoad().keySet());
|
||||
serverNames.addAll(clusterStatus.getDeadServerNames());
|
||||
|
||||
for (final ServerName serverName : serverNames) {
|
||||
|
|
Loading…
Reference in New Issue