Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16042

DatanodeAdminMonitor scan should be delay based

    XMLWordPrintableJSON

Details

    Description

      In DatanodeAdminManager.activate(), the Monitor task is scheduled with a fixed rate, ie. the period is from start1 -> start2.  

      executor.scheduleAtFixedRate(monitor, intervalSecs, intervalSecs,
         TimeUnit.SECONDS);
      

      According to Java API docs for scheduleAtFixedRate,

      If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.

      It should be a fixed delay so it's end1 -> start1.

       

      Attachments

        1. HDFS-16042-branch-3.3.001.patch
          0.9 kB
          Ahmed Hussein
        2. HDFS-16042-branch-3.2.001.patch
          1.0 kB
          Ahmed Hussein
        3. HDFS-16042-branch-2.10.001.patch
          0.9 kB
          Ahmed Hussein

        Issue Links

          Activity

            People

              ahussein Ahmed Hussein
              ahussein Ahmed Hussein
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h