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 Original file line number Diff line number Diff line change @@ -220,10 +220,10 @@ public DNConf(final Configurable dn) {
220
220
DFS_HEARTBEAT_INTERVAL_DEFAULT , TimeUnit .SECONDS ,
221
221
TimeUnit .MILLISECONDS );
222
222
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 );
227
227
if (confLifelineIntervalMs <= heartBeatInterval ) {
228
228
confLifelineIntervalMs = 3 * heartBeatInterval ;
229
229
DataNode .LOG .warn (
You can’t perform that action at this time.
0 commit comments