Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11398

RetryUpToMaximumTimeWithFixedSleep needs to behave more accurately

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      RetryUpToMaximumTimeWithFixedSleep now inherits RetryUpToMaximumCountWithFixedSleep and just acts as a wrapper to decide maxRetries. The current implementation uses (maxTime / sleepTime) as the number of maxRetries. This is fine if the actual for each retry is significantly less than the sleep time, but it becomes less accurate if each retry takes comparable amount of time as the sleep time. The problem gets worse when there are underlying retries.

      We may want to use timers inside RetryUpToMaximumTimeWithFixedSleep to perform accurate timing.

      Attachments

        1. HADOOP-11398-121114.patch
          6 kB
          Li Lu
        2. HADOOP-11398.002.patch
          6 kB
          Akira Ajisaka
        3. HADOOP-11398.003.patch
          8 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              gtcarrera9 Li Lu
              gtcarrera9 Li Lu
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: