Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10397

Distcp should ignore -delete option if -diff option is provided instead of exiting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0, 3.0.0-alpha1
    • distcp
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HDFS-10397.003.patch
          9 kB
          Mingliang Liu
        2. HDFS-10397.003.patch
          9 kB
          Mingliang Liu
        3. HDFS-10397.002.patch
          8 kB
          Mingliang Liu
        4. HDFS-10397.001.patch
          6 kB
          Mingliang Liu
        5. HDFS-10397.000.patch
          3 kB
          Mingliang Liu

        Issue Links

          Activity

            People

              liuml07 Mingliang Liu
              liuml07 Mingliang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: