From 4fdeac122888e72bf3651ae0bacf204d1fac93f0 Mon Sep 17 00:00:00 2001 From: Jim Brennan Date: Thu, 15 Jul 2021 20:59:09 +0000 Subject: [PATCH] HDFS-16042. DatanodeAdminMonitor scan should be delay based. Contributed by Ahmed Hussein. --- .../hdfs/server/blockmanagement/DatanodeAdminManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java index ce92151cd04..4c7fc5f0901 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java @@ -182,7 +182,7 @@ public class DatanodeAdminManager { + DFSConfigKeys.DFS_NAMENODE_DECOMMISSION_MAX_CONCURRENT_TRACKED_NODES); monitor = new Monitor(blocksPerInterval, maxConcurrentTrackedNodes); - executor.scheduleAtFixedRate(monitor, intervalSecs, intervalSecs, + executor.scheduleWithFixedDelay(monitor, intervalSecs, intervalSecs, TimeUnit.SECONDS); LOG.debug("Activating DatanodeAdminManager with interval {} seconds, " +