Skip to content

Commit a2a0283

Browse files
authored
HDFS-16042. DatanodeAdminMonitor scan should be delay based (#3058)
1 parent 9445abb commit a2a0283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeAdminManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void activate(Configuration conf) {
149149
throw new RuntimeException("Unable to create the Decommission monitor " +
150150
"from "+cls, e);
151151
}
152-
executor.scheduleAtFixedRate(monitor, intervalSecs, intervalSecs,
152+
executor.scheduleWithFixedDelay(monitor, intervalSecs, intervalSecs,
153153
TimeUnit.SECONDS);
154154

155155
LOG.debug("Activating DatanodeAdminManager with interval {} seconds, " +

0 commit comments

Comments
 (0)