Apache9 commented on a change in pull request #721: HBASE-23170 Admin#getRegionServers use ClusterMetrics.Option.SERVERS_NAME URL: https://github.com/apache/hbase/pull/721#discussion_r335447694
########## File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncAdmin.java ########## @@ -1048,8 +1048,7 @@ * @return current live region servers list wrapped by {@link CompletableFuture} */ default CompletableFuture<Collection<ServerName>> getRegionServers() { - return getClusterMetrics(EnumSet.of(Option.LIVE_SERVERS)) - .thenApply(cm -> cm.getLiveServerMetrics().keySet()); + return getClusterMetrics(EnumSet.of(Option.SERVERS_NAME)).thenApply(cm -> cm.getServersName()); Review comment: ClusterMetrics::getServersName? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services