Skip to content

Commit

Permalink
HDFS-17233. The conf dfs.datanode.lifeline.interval.seconds is not co…
Browse files Browse the repository at this point in the history
…nsidering time unit seconds (#6286). Contributed by Palakur Eshwitha Sai.

Reviewed-by: huhaiyang <[email protected]>
Signed-off-by: Ayush Saxena <[email protected]>
  • Loading branch information
eshwitha authored Dec 2, 2023
1 parent e76477e commit d0b460f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ public DNConf(final Configurable dn) {
DFS_HEARTBEAT_INTERVAL_DEFAULT, TimeUnit.SECONDS,
TimeUnit.MILLISECONDS);
long confLifelineIntervalMs =
getConf().getLong(DFS_DATANODE_LIFELINE_INTERVAL_SECONDS_KEY,
3 * getConf().getTimeDuration(DFS_HEARTBEAT_INTERVAL_KEY,
DFS_HEARTBEAT_INTERVAL_DEFAULT, TimeUnit.SECONDS,
TimeUnit.MILLISECONDS));
getConf().getTimeDuration(DFS_DATANODE_LIFELINE_INTERVAL_SECONDS_KEY,
3 * getConf().getTimeDuration(DFS_HEARTBEAT_INTERVAL_KEY,
DFS_HEARTBEAT_INTERVAL_DEFAULT, TimeUnit.SECONDS),
TimeUnit.SECONDS, TimeUnit.MILLISECONDS);
if (confLifelineIntervalMs <= heartBeatInterval) {
confLifelineIntervalMs = 3 * heartBeatInterval;
DataNode.LOG.warn(
Expand Down

0 comments on commit d0b460f

Please sign in to comment.