YARN-10957. Using invokeConcurrent Overload with Collection in getClusterMetrics (#3439)

This commit is contained in:
Akshat Bordia 2021-09-28 22:21:18 +05:30 committed by GitHub
parent f5148ca542
commit 51bd528bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -664,11 +664,10 @@ public class FederationClientInterceptor
federationFacade.getSubClusters(true);
ClientMethod remoteMethod = new ClientMethod("getClusterMetrics",
new Class[] {GetClusterMetricsRequest.class}, new Object[] {request});
ArrayList<SubClusterId> clusterList = new ArrayList<>(subclusters.keySet());
Map<SubClusterId, GetClusterMetricsResponse> clusterMetrics;
try {
clusterMetrics = invokeConcurrent(clusterList, remoteMethod,
clusterMetrics = invokeConcurrent(subclusters.keySet(), remoteMethod,
GetClusterMetricsResponse.class);
} catch (Exception ex) {