public static boolean isLeaseRecoverable(FileSystem fs) {
    // return true if HDFS.
    if (fs instanceof DistributedFileSystem) {
      return true;
    }
    // return true if the file system implements LeaseRecoverable interface.
    if (leaseRecoverableClazz != null) {
      return leaseRecoverableClazz.isAssignableFrom(fs.getClass());
    }
    // return false if the file system is not HDFS and does not implement LeaseRecoverable.
    return false;
  }
Recover the lease from Hadoop file system, retrying multiple times.
hbase-asyncfs/src/main/java/org/apache/hadoop/hbase/util/RecoverLeaseFSUtils.java