HDFS-11466. Change dfs.namenode.write-lock-reporting-threshold-ms default from 1000ms to 5000ms. Contributed by Andrew Wang.

(cherry picked from commit d269b488a7)
This commit is contained in:
Zhe Zhang 2017-02-28 09:00:49 -08:00
parent 58eefc71c7
commit 5fb785e154
2 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ public class DFSConfigKeys extends CommonConfigurationKeys {
// event to be logged // event to be logged
public static final String DFS_NAMENODE_WRITE_LOCK_REPORTING_THRESHOLD_MS_KEY = public static final String DFS_NAMENODE_WRITE_LOCK_REPORTING_THRESHOLD_MS_KEY =
"dfs.namenode.write-lock-reporting-threshold-ms"; "dfs.namenode.write-lock-reporting-threshold-ms";
public static final long DFS_NAMENODE_WRITE_LOCK_REPORTING_THRESHOLD_MS_DEFAULT = 1000L; public static final long DFS_NAMENODE_WRITE_LOCK_REPORTING_THRESHOLD_MS_DEFAULT = 5000L;
public static final String DFS_NAMENODE_READ_LOCK_REPORTING_THRESHOLD_MS_KEY = public static final String DFS_NAMENODE_READ_LOCK_REPORTING_THRESHOLD_MS_KEY =
"dfs.namenode.read-lock-reporting-threshold-ms"; "dfs.namenode.read-lock-reporting-threshold-ms";
public static final long DFS_NAMENODE_READ_LOCK_REPORTING_THRESHOLD_MS_DEFAULT = 5000L; public static final long DFS_NAMENODE_READ_LOCK_REPORTING_THRESHOLD_MS_DEFAULT = 5000L;

View File

@ -2657,7 +2657,7 @@
<property> <property>
<name>dfs.namenode.write-lock-reporting-threshold-ms</name> <name>dfs.namenode.write-lock-reporting-threshold-ms</name>
<value>1000</value> <value>5000</value>
<description>When a write lock is held on the namenode for a long time, <description>When a write lock is held on the namenode for a long time,
this will be logged as the lock is released. This sets how long the this will be logged as the lock is released. This sets how long the
lock must be held for logging to occur. lock must be held for logging to occur.