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

Retrying UnknownHostException on a proxy does not actually retry hostname resolution

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ipc
    • Labels:
      None
    • Target Version/s:

      Description

      When RetryInvocationHandler attempts to retry an UnknownHostException the hostname fails to be resolved again. The InetSocketAddress in the ConnectionId has cached the fact that the hostname is unresolvable, and when the proxy tries to setup a new Connection object with that ConnectionId it checks if the (cached) resolution result is unresolved and immediately throws.

      The end result is we sleep and retry for no benefit. The hostname resolution is never attempted again.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jzhuge John Zhuge
                Reporter:
                jlowe Jason Darrell Lowe
              • Votes:
                2 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated: