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

This commit is contained in:
Jim Brennan 2021-07-15 20:47:02 +00:00
parent b3481062e0
commit 0f2b89b791

View File

@ -148,7 +148,7 @@ void activate(Configuration conf) {
throw new RuntimeException("Unable to create the Decommission monitor " +
"from "+cls, e);
}
executor.scheduleAtFixedRate(monitor, intervalSecs, intervalSecs,
executor.scheduleWithFixedDelay(monitor, intervalSecs, intervalSecs,
TimeUnit.SECONDS);
LOG.debug("Activating DatanodeAdminManager with interval {} seconds, " +