You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2013/06/04 16:01:21 UTC

[jira] [Resolved] (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:all-tabpanel ]

Daryn Sharp resolved HDFS-4874.
-------------------------------

      Resolution: Not A Problem
    Hadoop Flags: Incompatible change

I fully agree with Suresh.  An overwrite is semantically a delete & create.  Since delete isn't influenced by a lease, neither should an overwrite.  Having a lease prevent overwrite/delete implies the lease somewhat extends to the directory contents (delete is a directory level operation) which doesn't make since a file lease is a file level lock.
                
> 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