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
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public class DatanodeAdminManager {
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, " +