[ https://issues.apache.org/jira/browse/ZOOKEEPER-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13906209#comment-13906209 ]
Raul Gutierrez Segales commented on ZOOKEEPER-1883: --------------------------------------------------- Thanks for reporting [~abutala]. That test, testLastZxid, wasn't waiting for the client to be connected so the test was racy. I changed it such that it uses createClient() as all other tests do. I also removed the calls to zookeeper_close() since most other tests don't clean up anyway. It passes now. [~phunt]: easy fix for 3.5.0. > C client unit test failures > --------------------------- > > Key: ZOOKEEPER-1883 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1883 > Project: ZooKeeper > Issue Type: Bug > Components: c client, tests > Reporter: Abhiraj Butala > Assignee: Raul Gutierrez Segales > Priority: Minor > Fix For: 3.5.0 > > Attachments: ZOOKEEPER-1883.patch > > > I am seeing unit test failure for c client after I do 'make check' as shown > below. The failure is pretty consistent, but does not happen always. This is > on latest check-out of zookeeper trunk. > ------------------ > Zookeeper_simpleSystem::testAsyncWatcherAutoReset ZooKeeper server started : > elapsed 9640 : OK > Zookeeper_simpleSystem::testDeserializeString : elapsed 0 : OK > Zookeeper_simpleSystem::testFirstServerDown : elapsed 1007 : OK > Zookeeper_simpleSystem::testNullData : elapsed 1028 : OK > Zookeeper_simpleSystem::testIPV6 : elapsed 1008 : OK > Zookeeper_simpleSystem::testCreate : elapsed 1016 : OK > Zookeeper_simpleSystem::testPath : elapsed 1083 : OK > Zookeeper_simpleSystem::testPathValidation : elapsed 1046 : OK > Zookeeper_simpleSystem::testPing : elapsed 17301 : OK > Zookeeper_simpleSystem::testAcl : elapsed 1018 : OK > Zookeeper_simpleSystem::testChroot : elapsed 3057 : OK > Zookeeper_simpleSystem::testAuth ZooKeeper server started ZooKeeper server > started : elapsed 29357 : OK > Zookeeper_simpleSystem::testHangingClient : elapsed 1037 : OK > Zookeeper_simpleSystem::testWatcherAutoResetWithGlobal ZooKeeper server > started ZooKeeper server started ZooKeeper server started : elapsed 12983 : OK > Zookeeper_simpleSystem::testWatcherAutoResetWithLocal ZooKeeper server > started ZooKeeper server started ZooKeeper server started : elapsed 13028 : OK > Zookeeper_simpleSystem::testGetChildren2 : elapsed 1031 : OK > Zookeeper_simpleSystem::testLastZxid : assertion : elapsed 2514 > Zookeeper_watchers::testDefaultSessionWatcher1 : elapsed 52 : OK > Zookeeper_watchers::testDefaultSessionWatcher2 : elapsed 3 : OK > Zookeeper_watchers::testObjectSessionWatcher1 : elapsed 52 : OK > Zookeeper_watchers::testObjectSessionWatcher2 : elapsed 54 : OK > Zookeeper_watchers::testNodeWatcher1 : elapsed 55 : OK > Zookeeper_watchers::testChildWatcher1 : elapsed 3 : OK > Zookeeper_watchers::testChildWatcher2 : elapsed 3 : OK > tests/TestClient.cc:1281: Assertion: equality assertion failed [Expected: > 1239, Actual : 1238] > Failures !!! > Run: 70 Failure total: 1 Failures: 1 Errors: 0 > FAIL: zktest-mt > ========================================== > 1 of 2 tests failed > Please report to u...@zookeeper.apache.org > ========================================== > make[1]: *** [check-TESTS] Error 1 > make[1]: Leaving directory `/home/abutala/work/zk/zookeeper-trunk/src/c' > make: *** [check-am] Error 2 > ------------------ > $ uname -a > Linux abutala-vBox 3.8.0-35-generic #50~precise1-Ubuntu SMP Wed Dec 4 > 17:25:51 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux -- This message was sent by Atlassian JIRA (v6.1.5#6160)