Package org.apache.solr.hdfs.util
Class HdfsRecoverLeaseFileSystemUtils
- java.lang.Object
-
- org.apache.solr.hdfs.util.HdfsRecoverLeaseFileSystemUtils
-
public class HdfsRecoverLeaseFileSystemUtils extends Object
Borrowed from Apache HBase to recover an HDFS lease. https://github.com/apache/hbase/blob/master/hbase-asyncfs/src/main/java/org/apache/hadoop/hbase/util/RecoverLeaseFSUtils.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HdfsRecoverLeaseFileSystemUtils.CallerInfo
-
Field Summary
Fields Modifier and Type Field Description static AtomicLong
RECOVER_LEASE_SUCCESS_COUNT
-
Constructor Summary
Constructors Constructor Description HdfsRecoverLeaseFileSystemUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
recoverFileLease(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, org.apache.hadoop.conf.Configuration conf, HdfsRecoverLeaseFileSystemUtils.CallerInfo callerInfo)
Recover the lease from HDFS, retrying multiple times.
-
-
-
Field Detail
-
RECOVER_LEASE_SUCCESS_COUNT
public static final AtomicLong RECOVER_LEASE_SUCCESS_COUNT
-
-
Method Detail
-
recoverFileLease
public static void recoverFileLease(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path p, org.apache.hadoop.conf.Configuration conf, HdfsRecoverLeaseFileSystemUtils.CallerInfo callerInfo) throws IOException
Recover the lease from HDFS, retrying multiple times.- Throws:
IOException
-
-