Change recoverLease API to return if the file is closed or not. It also change the semantics of recoverLease to start lease recovery immediately.

Description

Current recoverLease API implemented in append 0.20 aims to provide a lighter weight (comparing to using create/append) way to trigger a file's soft lease expiration. From both the use case of hbase and scribe, it could have a stronger semantics: revoking the file's lease, thus starting lease recovery immediately.

Also I'd like to port this recoverLease API to HDFS 0.22 and trunk since HBase is moving to HDFS 0.22.

Hairong Kuang
added a comment - 10/Jan/11 21:33 Sorry that I forgot that I meant to introduce this new API to the trunk. Let me change this jira's fix version to append 0.20 and then open a different jira for the trunk.