File tree Expand file tree Collapse file tree 4 files changed +0
-23
lines changed
hadoop-hdfs-project/hadoop-hdfs/src
java/org/apache/hadoop/hdfs
test/java/org/apache/hadoop/hdfs/server/namenode Expand file tree Collapse file tree 4 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -484,11 +484,6 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
484484 public static final String DFS_NAMENODE_STARTUP_DELAY_BLOCK_DELETION_SEC_KEY = "dfs.namenode.startup.delay.block.deletion.sec" ;
485485 public static final long DFS_NAMENODE_STARTUP_DELAY_BLOCK_DELETION_SEC_DEFAULT = 0L ;
486486
487- /** Block deletion increment. */
488- public static final String DFS_NAMENODE_BLOCK_DELETION_INCREMENT_KEY =
489- "dfs.namenode.block.deletion.increment" ;
490- public static final int DFS_NAMENODE_BLOCK_DELETION_INCREMENT_DEFAULT = 1000 ;
491-
492487 /** The limit of single lock holding duration.*/
493488 public static final String DFS_NAMENODE_BLOCK_DELETION_LOCK_THRESHOLD_MS =
494489 "dfs.namenode.block.deletion.lock.threshold.ms" ;
Original file line number Diff line number Diff line change @@ -502,7 +502,6 @@ private boolean isClientPortInfoAbsent(CallerContext ctx){
502502 private final boolean standbyShouldCheckpoint ;
503503 private final boolean isSnapshotTrashRootEnabled ;
504504 private final int snapshotDiffReportLimit ;
505- private final int blockDeletionIncrement ;
506505
507506 /**
508507 * Whether enable checkOperation when call getBlocks.
@@ -1065,12 +1064,6 @@ static FSNamesystem loadFromDisk(Configuration conf) throws IOException {
10651064 this .allowOwnerSetQuota = conf .getBoolean (
10661065 DFSConfigKeys .DFS_PERMISSIONS_ALLOW_OWNER_SET_QUOTA_KEY ,
10671066 DFSConfigKeys .DFS_PERMISSIONS_ALLOW_OWNER_SET_QUOTA_DEFAULT );
1068- this .blockDeletionIncrement = conf .getInt (
1069- DFSConfigKeys .DFS_NAMENODE_BLOCK_DELETION_INCREMENT_KEY ,
1070- DFSConfigKeys .DFS_NAMENODE_BLOCK_DELETION_INCREMENT_DEFAULT );
1071- Preconditions .checkArgument (blockDeletionIncrement > 0 ,
1072- DFSConfigKeys .DFS_NAMENODE_BLOCK_DELETION_INCREMENT_KEY +
1073- " must be a positive integer." );
10741067 this .isGetBlocksCheckOperationEnabled = conf .getBoolean (
10751068 DFSConfigKeys .DFS_NAMENODE_GETBLOCKS_CHECK_OPERATION_KEY ,
10761069 DFSConfigKeys .DFS_NAMENODE_GETBLOCKS_CHECK_OPERATION_DEFAULT );
Original file line number Diff line number Diff line change 61446144 </description >
61456145 </property >
61466146
6147- <property >
6148- <name >dfs.namenode.block.deletion.increment</name >
6149- <value >1000</value >
6150- <description >
6151- The number of block deletion increment.
6152- This setting will control the block increment deletion rate to
6153- ensure that other waiters on the lock can get in.
6154- </description >
6155- </property >
6156-
61576147 <property >
61586148 <name >dfs.namenode.block.deletion.lock.threshold.ms</name >
61596149 <value >50</value >
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ public class TestLargeDirectoryDelete {
5151 static {
5252 CONF .setLong (DFSConfigKeys .DFS_BLOCK_SIZE_KEY , 1 );
5353 CONF .setInt (DFSConfigKeys .DFS_BYTES_PER_CHECKSUM_KEY , 1 );
54- CONF .setInt (DFSConfigKeys .DFS_NAMENODE_BLOCK_DELETION_INCREMENT_KEY , 1 );
5554 }
5655
5756 /** create a file with a length of <code>filelen</code> */
You can’t perform that action at this time.
0 commit comments