HBASE-25699 [branch-1] UnsupportedOperationException in DumpClusterStatusAction (#3094)

Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
Andrew Purtell 2021-03-26 14:16:42 -07:00 committed by GitHub
parent 7652bef985
commit 87527d62ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {