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

IPC.Client.handleConnectionFailure should bail out if the retry count is >= the maximum, not ==

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.20.0
    • None
    • ipc

    Description

      Looking at the code in IPC.Client.handleConnectionFailure(), its clear that the connection setup exits if the client retrys equals the maximum specified

      if (curRetries == maxRetries)

      { throw ioe; }

      But there's nothing to stop anyone setting ipc.client.connect.max.retries=0 in the configuration, and if that happens, the code will spin until the (integer) retry count wraps around. The test should be curRetries >= maxRetries

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: