Skip to content

Commit f187e9b

Browse files
authored
HDFS-16554. Remove unused configuration dfs.namenode.block.deletion.increment. (#4213). Contributed by Chengwei Wang.
1 parent 2632d49 commit f187e9b

File tree

4 files changed

+0
-23
lines changed

4 files changed

+0
-23
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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";

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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);

hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6144,16 +6144,6 @@
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>

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestLargeDirectoryDelete.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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> */

0 commit comments

Comments
 (0)