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

IPC.Client retry delay should be interruptible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.20.2, 0.21.0, 0.22.0
    • 0.22.0
    • ipc
    • None

    Description

      The delay of ipc.Client.handleConnectionFailure() that causes the client to block and wait is hard coded at 1 second; any interruption of the thread is treated as a shortening of the delay.

      // otherwise back off and retry
      try

      { Thread.sleep(1000); }

      catch (InterruptedException ignored) {}

      1. this delay could be configurable; different clients may wish to retry more/less often. or at a slightly different rate than their peers.

      2. interrupting the thread may imply the client has been requested to terminate -this could be handled by declaring failure early, rather than continuing to retry until the retry count is exceeded.

      Attachments

        1. HADOOP-3457.patch
          1.0 kB
          Steve Loughran
        2. HADOOP-3457.patch
          1.0 kB
          Steve Loughran
        3. HADOOP-3457.patch
          1.0 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: