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

Fake "invalid" hostnames used in tests are sometimes valid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.4.7, 3.5.1, 3.6.0
    • Fix Version/s: 3.4.8, 3.5.2, 3.6.0
    • Component/s: None
    • Labels:
      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

              • Assignee:
                timothyjward Timothy Ward
                Reporter:
                timothyjward Timothy Ward
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: