Skip to content

Commit d0b460f

Browse files
authored
HDFS-17233. The conf dfs.datanode.lifeline.interval.seconds is not considering time unit seconds (apache#6286). Contributed by Palakur Eshwitha Sai.
Reviewed-by: huhaiyang <[email protected]> Signed-off-by: Ayush Saxena <[email protected]>
1 parent e76477e commit d0b460f

File tree

1 file changed

+4
-4
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode

1 file changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DNConf.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ public DNConf(final Configurable dn) {
220220
DFS_HEARTBEAT_INTERVAL_DEFAULT, TimeUnit.SECONDS,
221221
TimeUnit.MILLISECONDS);
222222
long confLifelineIntervalMs =
223-
getConf().getLong(DFS_DATANODE_LIFELINE_INTERVAL_SECONDS_KEY,
224-
3 * getConf().getTimeDuration(DFS_HEARTBEAT_INTERVAL_KEY,
225-
DFS_HEARTBEAT_INTERVAL_DEFAULT, TimeUnit.SECONDS,
226-
TimeUnit.MILLISECONDS));
223+
getConf().getTimeDuration(DFS_DATANODE_LIFELINE_INTERVAL_SECONDS_KEY,
224+
3 * getConf().getTimeDuration(DFS_HEARTBEAT_INTERVAL_KEY,
225+
DFS_HEARTBEAT_INTERVAL_DEFAULT, TimeUnit.SECONDS),
226+
TimeUnit.SECONDS, TimeUnit.MILLISECONDS);
227227
if (confLifelineIntervalMs <= heartBeatInterval) {
228228
confLifelineIntervalMs = 3 * heartBeatInterval;
229229
DataNode.LOG.warn(

0 commit comments

Comments
 (0)