goiri commented on code in PR #4274: URL: https://github.com/apache/hadoop/pull/4274#discussion_r868256734
########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/RouterMetrics.java: ########## @@ -74,7 +76,9 @@ public final class RouterMetrics { @Metric("Total number of successful Retrieved getClusterMetrics and " + "latency(ms)") private MutableRate totalSucceededGetClusterMetricsRetrieved; - + @Metric("Total number of successful Retrieved getClusterNodes and " Review Comment: I think with the new checkstyle, you could make this one line. ########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/RouterYarnClientUtils.java: ########## @@ -17,17 +17,14 @@ */ package org.apache.hadoop.yarn.server.router.clientrm; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; +import java.util.*; Review Comment: Avoid messing too much with the imports. ########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/RouterYarnClientUtils.java: ########## @@ -194,4 +191,24 @@ private static boolean mergeUamToReport(String appName, return !(appName.startsWith(UnmanagedApplicationManager.APP_NAME) || appName.startsWith(PARTIAL_REPORT)); } + + /** + * Merges a list of GetClusterNodesResponse. + * + * @param responses a list of GetClusterNodesResponse to merge + * @return the merged GetClusterNodesResponse + */ + public static GetClusterNodesResponse mergeClusterNodesResponse( + Collection<GetClusterNodesResponse> responses) { + GetClusterNodesResponse clusterNodesResponse = Records.newRecord( + GetClusterNodesResponse.class); Review Comment: Check the checkstyle report from Yetus. -- 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. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org