HDFS-9935. Remove LEASE_{SOFTLIMIT,HARDLIMIT}_PERIOD and unused import from HdfsServerConstants. Contributed Yiqun Lin.
This commit is contained in:
parent
be529dade1
commit
a5ec1e31a3
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
import org.apache.hadoop.classification.InterfaceAudience;
|
import org.apache.hadoop.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.hdfs.DFSUtil;
|
import org.apache.hadoop.hdfs.DFSUtil;
|
||||||
import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys;
|
|
||||||
import org.apache.hadoop.hdfs.protocol.HdfsConstants;
|
import org.apache.hadoop.hdfs.protocol.HdfsConstants;
|
||||||
import org.apache.hadoop.hdfs.server.datanode.DataNodeLayoutVersion;
|
import org.apache.hadoop.hdfs.server.datanode.DataNodeLayoutVersion;
|
||||||
import org.apache.hadoop.hdfs.server.namenode.FSDirectory;
|
import org.apache.hadoop.hdfs.server.namenode.FSDirectory;
|
||||||
@ -44,13 +43,6 @@
|
|||||||
public interface HdfsServerConstants {
|
public interface HdfsServerConstants {
|
||||||
int MIN_BLOCKS_FOR_WRITE = 1;
|
int MIN_BLOCKS_FOR_WRITE = 1;
|
||||||
|
|
||||||
/**
|
|
||||||
* Please see {@link HdfsConstants#LEASE_SOFTLIMIT_PERIOD} and
|
|
||||||
* {@link HdfsConstants#LEASE_HARDLIMIT_PERIOD} for more information.
|
|
||||||
*/
|
|
||||||
long LEASE_SOFTLIMIT_PERIOD = HdfsConstants.LEASE_SOFTLIMIT_PERIOD;
|
|
||||||
long LEASE_HARDLIMIT_PERIOD = HdfsConstants.LEASE_HARDLIMIT_PERIOD;
|
|
||||||
|
|
||||||
long LEASE_RECOVER_PERIOD = 10 * 1000; // in ms
|
long LEASE_RECOVER_PERIOD = 10 * 1000; // in ms
|
||||||
// We need to limit the length and depth of a path in the filesystem.
|
// We need to limit the length and depth of a path in the filesystem.
|
||||||
// HADOOP-438
|
// HADOOP-438
|
||||||
|
Loading…
Reference in New Issue
Block a user