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

C client test suite fails consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.4
    • 3.4.3, 3.3.5, 3.5.0
    • c client, tests
    • Ubuntu precise (dev release), amd64

    • 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

        1. fix-broken-c-client-unittest.patch
          0.8 kB
          Clint Byrum
        2. fix-broken-c-client-unittest.patch
          0.5 kB
          Patrick D. Hunt

        Activity

          People

            spamaps Clint Byrum
            spamaps Clint Byrum
            Votes:
            0 Vote for this issue
            Watchers:
            1 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