Ubuntu

C client test suite fails consistently

Reported by Clint Byrum on 2012-01-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zookeeper (Ubuntu)
Low
Unassigned

Bug 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://<email address hidden>/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.

Clint Byrum (clint-fewbar) wrote :

Note that this is also reported upstream here:

https://issues.apache.org/jira/browse/ZOOKEEPER-1353

Changed in zookeeper (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zookeeper - 3.3.4+dfsg1-2ubuntu2

---------------
zookeeper (3.3.4+dfsg1-2ubuntu2) precise; urgency=low

  [ Clint Byrum ]
  * d/patches/fix-broken-c-client-test.patch: Fixes the unit test so it
    will pass with EINVAL which is the correct error. (LP: #912935)

  [ James Page ]
  * d/rules: Enable execution of C client and core Java tests (LP: #913881).
 -- Clint Byrum <email address hidden> Fri, 06 Jan 2012 13:58:23 -0800

Changed in zookeeper (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers