Skip to content

Commit 19af2f3

Browse files
author
WangChengWei
committed
Add default config values to hdfs-default.xml.
1 parent 4419c1c commit 19af2f3

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,12 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
481481
"dfs.namenode.block.deletion.increment";
482482
public static final int DFS_NAMENODE_BLOCK_DELETION_INCREMENT_DEFAULT = 1000;
483483

484+
/** The limit of single lock holding duration.*/
484485
public static final String DFS_NAMENODE_BLOCK_DELETION_LOCK_THRESHOLD_MS =
485486
"dfs.namenode.block.deletion.lock.threshold.ms";
486487
public static final int DFS_NAMENODE_BLOCK_DELETION_LOCK_THRESHOLD_MS_DEFAULT =
487488
50;
489+
/** The sleep interval for releasing lock.*/
488490
public static final String DFS_NAMENODE_BLOCK_DELETION_UNLOCK_INTERVAL_MS =
489491
"dfs.namenode.block.deletion.unlock.interval.ms";
490492
public static final int DFS_NAMENODE_BLOCK_DELETION_UNLOCK_INTERVAL_MS_DEFAULT =

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6109,6 +6109,25 @@
61096109
</description>
61106110
</property>
61116111

6112+
<property>
6113+
<name>dfs.namenode.block.deletion.lock.threshold.ms</name>
6114+
<value>50</value>
6115+
<description>
6116+
The limit of single time lock holding duration for the block asynchronous
6117+
deletion thread.
6118+
</description>
6119+
</property>
6120+
6121+
<property>
6122+
<name>dfs.namenode.block.deletion.unlock.interval.ms</name>
6123+
<value>10</value>
6124+
<description>
6125+
The sleep interval for yield lock.
6126+
When the single time lock holding duration of the block asynchronous deletion
6127+
thread exceeds limit, sleeping to yield lock.
6128+
</description>
6129+
</property>
6130+
61126131
<property>
61136132
<name>dfs.namenode.rpc-address.auxiliary-ports</name>
61146133
<value></value>

0 commit comments

Comments
 (0)