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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]