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 "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2013/06/04 07:06:22 UTC

[jira] [Commented] (HDFS-4874) create with OVERWRITE deletes existing file without checking the lease: feature or a bug.

    [ https://issues.apache.org/jira/browse/HDFS-4874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13674059#comment-13674059 ] 

Suresh Srinivas commented on HDFS-4874:
---------------------------------------

I think the current behavior is the right one. Overwrite flag indicates that if a file already exists, it needs to be overwritten, irrespective of if a file is in complete state or being written state.

My vote would be to close this as "Not a problem".
                
> create with OVERWRITE deletes existing file without checking the lease: feature or a bug.
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-4874
>                 URL: https://issues.apache.org/jira/browse/HDFS-4874
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.0.4-alpha
>            Reporter: Konstantin Shvachko
>
> create with OVERWRITE flag will remove a file under construction even if the issuing client does not hold a lease on the file.
> It could be a bug or the feature that applications rely upon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira