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

C client test suite fails consistently

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.4
    • Fix Version/s: 3.4.3, 3.3.5, 3.5.0
    • Component/s: c client, tests
    • Labels:
    • Environment:

      Ubuntu precise (dev release), amd64

    • Hadoop Flags:
      Reviewed

      Description

      When the c client test suite, zktest-mt, is run, it fails with this:

      tests/TestZookeeperInit.cc:233: Assertion: equality assertion failed [Expected: 2, Actual : 22]

      This was also reported in 3.3.1 here:

      http://www.mail-archive.com/zookeeper-dev@hadoop.apache.org/msg08914.html

      The C client tests are making some assumptions that are not valid. getaddrinfo may have, at one time, returned ENOENT instead of EINVAL for the host given in the test. The assertion should simply be that EINVAL | ENOENT are given, so that builds on platforms which return ENOENT for this are not broken.

        Attachments

          Activity

            People

            • Assignee:
              spamaps Clint Byrum
              Reporter:
              spamaps Clint Byrum
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified