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