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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • qpid-java-broker-7.0.9
    • Broker-J
    • 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

              Unassigned Unassigned
              orudyy Alex Rudyy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: