File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/main
java/org/apache/hadoop/hdfs Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff 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 =
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments