[ 
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

Reply via email to