hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HDFS-11385) DistCp CopyCommitter should issue warning instead of throw exception when failed to delete file.
Date Thu, 02 Feb 2017 12:47:55 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yiqun Lin reassigned HDFS-11385:
--------------------------------

    Assignee: Yiqun Lin

> 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
>            Assignee: Yiqun Lin
>
> 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