checkLease should throw FileNotFoundException when file does not exist
----------------------------------------------------------------------
Key: HDFS-2484
URL: https://issues.apache.org/jira/browse/HDFS-2484
Project: Hadoop HDFS
Issue Type: Bug
Components: name-node
Affects Versions: 0.22.0, 0.24.0
Reporter: Konstantin Shvachko
When file is deleted during its creation {{FSNamesystem.checkLease(String src,
String holder)}} throws {{LeaseExpiredException}}. It would be more informative
if it thrown {{FileNotFoundException}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira