You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Bharat Viswanadham (JIRA)" <ji...@apache.org> on 2018/01/12 21:01:03 UTC

[jira] [Assigned] (HDFS-13019) dfs put with -f to dir with existing file in dest should return 0, not -1

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

Bharat Viswanadham reassigned HDFS-13019:
-----------------------------------------

    Assignee: Bharat Viswanadham

> dfs put with -f to dir with existing file in dest should return 0, not -1
> -------------------------------------------------------------------------
>
>                 Key: HDFS-13019
>                 URL: https://issues.apache.org/jira/browse/HDFS-13019
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 2.7.3
>            Reporter: BRYAN T VOLD
>            Assignee: Bharat Viswanadham
>
> When doing an hdfs dfs -put <src_dir> <dest_dir> and there are existing files, the return code will be -1, which is expected.  
> When you do an hdfs dfs -put -f <src_dir> <dest_dir> (force), the error code still comes back as -1, which is unexpected.  
> If you use hdfs dfs -copyFromLocal using the same directories as above, the -copyFromLocal stills gives the error which is expected and when you pass -f to this version of the command, the error code is 0, which I think is the correct behavior and I think the hdfs dfs -put should match this.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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