[ https://issues.apache.org/jira/browse/HDFS-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989603#comment-13989603 ]
Kihwal Lee commented on HDFS-6338: ---------------------------------- I think you can achieve what you want with recoverLease(). Leases cannot be simply deleted without actually finalizing the last block replicas and closing the file. NN does it for you, but it usually takes several seconds for recovering the last block. If you don't care about the old content and want to create a new file with the same name, simply delete the old file. The lease will be deleted along with the file. > Add a RPC method to allow administrator to delete the file lease. > ----------------------------------------------------------------- > > Key: HDFS-6338 > URL: https://issues.apache.org/jira/browse/HDFS-6338 > Project: Hadoop HDFS > Issue Type: New Feature > Components: namenode > Affects Versions: 2.4.0 > Reporter: Fengdong Yu > Assignee: Fengdong Yu > Priority: Minor > > we have to wait file lease expire after unexpected interrupt during HDFS > writing. so I want to add a RPC method to allow administrator delete the file > lease. > Please leave comments here, I am workong on the patch now. -- This message was sent by Atlassian JIRA (v6.2#6252)