You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "dzcxzl (Jira)" <ji...@apache.org> on 2026/10/15 08:28:00 UTC

[jira] [Created] (HDFS-17995) DirectoryScanner should schedule scans with a fixed delay and log scan duration

dzcxzl created HDFS-17995:
-----------------------------

             Summary: DirectoryScanner should schedule scans with a fixed delay and log scan duration
                 Key: HDFS-17995
                 URL: https://issues.apache.org/jira/browse/HDFS-17995
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: hdfs
            Reporter: dzcxzl


  DirectoryScanner schedules itself with ScheduledThreadPoolExecutor#scheduleAtFixedRate.
  With fixed-rate scheduling the next execution is computed from the previous *scheduled*
  time, not from the time the previous run finished. If a single scan takes longer than
  dfs.datanode.directoryscan.interval, the executor runs the missed executions back-to-back
  until it has caught up with the schedule. On DataNodes with a large number of blocks the
  scanner therefore ends up running almost continuously.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org