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

Daryn Sharp commented on HDFS-4437:
-----------------------------------

I think supporting file descriptor behavior is a great idea (we've internally 
talked about this).  Until we do, I think the lease should be revoked.  My 
concerns with fd behavior would be the ever pervasive "two wrongs make a right" 
where users are relying unintentionally on renames breaking writers, and 
ensuring we get the security right to avoid attacks probing for fileids.
                
> Clients should not retain leases on moved files
> -----------------------------------------------
>
>                 Key: HDFS-4437
>                 URL: https://issues.apache.org/jira/browse/HDFS-4437
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 0.23.0, 2.0.0-alpha, 3.0.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>            Priority: Critical
>
> Moving open files and/or parent directories of open files will rewrite the 
> leases to the new path.  The client is not notified so future stream 
> operations will fail.  However, as long as the client keeps its lease active 
> it will have a "lock" on the file in its new location.  This is not good for 
> a daemon.
> Leases should be released after the file is moved.

--
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