goiri commented on code in PR #5766: URL: https://github.com/apache/hadoop/pull/5766#discussion_r1240546837
########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRouterCLI.java: ########## @@ -120,7 +122,10 @@ public void testDeregisterSubCluster() throws Exception { ByteArrayOutputStream dataOut = new ByteArrayOutputStream(); System.setOut(new PrintStream(dataOut)); oldOutPrintStream.println(dataOut); - String[] args = {"-deregisterSubCluster", "-c", "SC-1"}; + String[] args = {"-deregisterSubCluster", "-sc", "SC-1"}; Review Comment: It is weird to have a single dash for two letters. It should be `--sc`, no? ########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/rmadmin/FederationRMAdminInterceptor.java: ########## @@ -879,9 +879,11 @@ private DeregisterSubClusters deregisterSubCluster(String reqSubClusterId) { SubClusterState subClusterState = subClusterInfo.getState(); long lastHeartBeat = subClusterInfo.getLastHeartBeat(); Date lastHeartBeatDate = new Date(lastHeartBeat); - + String heartBeatTimeOut = Review Comment: Don't we use somewhere else other than the log message? -- 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