Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8150

[Broker-J] Prevent test failures due to slow initialisation of hostname resolution in HostnameAliasImpl

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: qpid-java-broker-7.1.0
    • Component/s: Broker-J
    • Labels:
      None

      Description

      On some operating systems / configurations (notably my laptop running OS X ) the resolution of potential hostnames which resolve to the local machine which takes place in HostnameAliasImpl can take a long time due to fruitless lookups. This can cause various system tests to fail.

      To prevent these failures

      1. Do not include the hostname virtual host alias where it is not needed in the system tests
      2. Reorder the list of InetAddress objects that are iterated over in the resolution phase so that addresses more likely to resolve (like the loopback interface) are processed first

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rgodfrey Rob Godfrey
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: