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

DatanodeAdminMonitor scan should be delay based

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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-2.10.001.patch
          0.9 kB
          Ahmed Hussein
        2. HDFS-16042-branch-3.2.001.patch
          1.0 kB
          Ahmed Hussein
        3. HDFS-16042-branch-3.3.001.patch
          0.9 kB
          Ahmed Hussein

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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

                Slack

                  Issue deployment