HDFS-16042. DatanodeAdminMonitor scan should be delay based. Contributed by Ahmed Hussein.
This commit is contained in:
parent
4a70248cb6
commit
4fdeac1228
|
@ -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, " +
|
||||
|
|
Loading…
Reference in New Issue