[
https://issues.apache.org/jira/browse/HDFS-17146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17823791#comment-17823791
]
ASF GitHub Bot commented on HDFS-17146:
---------------------------------------
slfan1989 commented on code in PR #6595:
URL: https://github.com/apache/hadoop/pull/6595#discussion_r1513586786
##########
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:
Can we explain this change?
> Use the dfsadmin -reconfig command to initiate reconfiguration on all
> decommissioning datanodes.
> ------------------------------------------------------------------------------------------------
>
> Key: HDFS-17146
> URL: https://issues.apache.org/jira/browse/HDFS-17146
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: dfsadmin, hdfs
> Affects Versions: 3.4.0
> Reporter: Hualong Zhang
> Assignee: Hualong Zhang
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.4.1, 3.5.0
>
>
> If the *DFSAdmin* command could have the ability to perform bulk operations
> across all decommissioned datanodes, that would be highly advantageous.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]