You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Mingliang Liu (JIRA)" <ji...@apache.org> on 2016/05/12 22:07:12 UTC

[jira] [Created] (HDFS-10397) Distcp should ignore -delete option if -diff option is provided instead of exiting

Mingliang Liu created HDFS-10397:
------------------------------------

             Summary: Distcp should ignore -delete option if -diff option is provided instead of exiting
                 Key: HDFS-10397
                 URL: https://issues.apache.org/jira/browse/HDFS-10397
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Mingliang Liu
            Assignee: Mingliang Liu


In distcp, {{-delete}} and {{-diff}} options are mutually exclusive. [HDFS-8828] brought strictly checking which makes the existing applications (or scripts) that work just fine with both {{-delete}} and {{-diff}} options previously stop performing because of the {{java.lang.IllegalArgumentException: Diff is valid only with update options}} exception.

To make it backward incompatible, we can ignore the {{-delete}} option, given {{-diff}} option, instead of exiting the program. Along with that, we can print a warning message saying that _Diff is valid only with update options, and -delete option is ignored_.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org