juncevich commented on code in PR #7139: URL: https://github.com/apache/ozone/pull/7139#discussion_r1795625538
########## hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerBalancerStatusSubcommand.java: ########## @@ -78,7 +85,9 @@ public void execute(ScmClient scmClient) throws IOException { if (verboseWithHistory) { System.out.println("Iteration history list:"); System.out.println( - iterationsStatusInfoList.stream().map(this::getPrettyIterationStatusInfo) + iterationsStatusInfoList.subList(0, iterationsStatusInfoList.size() - 1) Review Comment: I need iterations without current. >Sublist call feels like absolutely redundant. Why you think so? -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org