Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2337

Fake "invalid" hostnames used in tests are sometimes valid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.4.7, 3.5.1, 3.6.0
    • 3.4.8, 3.5.2
    • None
    • None

    Description

      Some of the ZooKeeper tests use "fake" hostnames to trigger host resolution failures. The problem with this is that it uses valid hostnames which are sometimes configured in VMs.

      At the moment I am unable to build cleanly because I get test failures on the two test methods that do this. The tests work equally well if syntactically invalid hostnames are used, and the test cases become more portable at the same time.

      The affected test cases are:

      org.apache.zookeeper.test.StaticHostProviderTest.testTwoInvalidHostAddresses and org.apache.zookeeper.test.StaticHostProviderTest.testOneInvalidHostAddresses

      See GitHub pull request https://github.com/apache/zookeeper/pull/48 for a proposed fix

      Attachments

        Issue Links

          Activity

            People

              timothyjward Timothy James Ward
              timothyjward Timothy James Ward
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: