jojochuang commented on a change in pull request #1111: HDFS-9913 DistCp to add
-useTrash to move deleted files to Trash
URL: https://github.com/apache/hadoop/pull/1111#discussion_r348157973
##########
File path:
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpOptions.java
##########
@@ -564,6 +576,11 @@ private void validate() {
+ "only with update or overwrite options");
}
+ if (deleteUseTrash && !deleteMissing) {
+ throw new IllegalArgumentException("Delete useTrash is applicable "
Review comment:
"Option -useTrash must be accompanied by -delete"
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]