HDFS-16042. DatanodeAdminMonitor scan should be delay based. Contributed by Ahmed Hussein.

This commit is contained in:
Jim Brennan 2021-07-15 20:59:09 +00:00
parent 4a70248cb6
commit 4fdeac1228
1 changed files with 1 additions and 1 deletions

View File

@ -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, " +