hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yongjun Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11385) DistCp CopyCommitter should issue warning instead of throw exception when failed to delete file.
Date Thu, 02 Feb 2017 06:58:52 GMT
Yongjun Zhang created HDFS-11385:
------------------------------------

             Summary: DistCp CopyCommitter should issue warning instead of throw exception
when failed to delete file.
                 Key: HDFS-11385
                 URL: https://issues.apache.org/jira/browse/HDFS-11385
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: distcp
            Reporter: Yongjun Zhang


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

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

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.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message