HDFS-16042. DatanodeAdminMonitor scan should be delay based (#3058)

This commit is contained in:
Ahmed Hussein 2021-06-08 11:09:31 -05:00 committed by GitHub
parent 9445abb500
commit a2a0283c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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