zhtttylz commented on code in PR #6595: URL: https://github.com/apache/hadoop/pull/6595#discussion_r1514181677
########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdmin.java: ########## @@ -1377,7 +1377,8 @@ public Boolean get() { } scanIntoList(out, outs); scanIntoList(err, errs); - return !outs.isEmpty() && outs.get(0).contains("finished"); + return !outs.isEmpty() && outs.stream().filter(line -> + line.contains("finished")).count() == 2; Review Comment: This test case is to refresh the configuration of two nodes in the cluster that are in the decommissioning state. It is necessary to wait for the 'finish' keyword of both nodes before the subsequent information verification becomes meaningful. -- 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