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

DistCp CopyCommitter should issue warning instead of throw exception when failed to delete file.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • distcp
    • None

    Description

      CopyCommiter#deleteMissing(Configuration conf) does the following in a loop for all files that need to be deleted:

              if (result) {
                LOG.info("Deleted " + trgtFileStatus.getPath() + " - Missing at source");
                deletedEntries++;
              } else {
                throw new IOException("Unable to delete " + trgtFileStatus.getPath());
              }
      

      If for some reason there is a failure to delete a file, then an exception is thrown and no other files will be deleted.

      It seems more reasonable to issue a warning here instead of throw an exception.

      Attachments

        1. HDFS-11385.001.patch
          0.9 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: