ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1353

C client test suite fails consistently

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        Clint Byrum created issue -
        Clint Byrum made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Clint Byrum made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Clint Byrum made changes -
        Attachment fix-broken-c-client-unittest.patch [ 12509719 ]
        Clint Byrum made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Patrick Hunt made changes -
        Attachment fix-broken-c-client-unittest.patch [ 12509758 ]
        Patrick Hunt made changes -
        Attachment fix-broken-c-client-unittest.patch [ 12509759 ]
        Patrick Hunt made changes -
        Attachment fix-broken-c-client-unittest.patch [ 12509758 ]
        Patrick Hunt made changes -
        Assignee Clint Byrum [ spamaps ]
        Patrick Hunt made changes -
        Fix Version/s 3.3.5 [ 12319081 ]
        Fix Version/s 3.4.3 [ 12319288 ]
        Fix Version/s 3.5.0 [ 12316644 ]
        Component/s tests [ 12312427 ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Clint Byrum
            Reporter:
            Clint Byrum
          • Votes:
            0 Vote for this issue
            Watchers:
            0 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

                Development