Github user andschwa commented on the issue:

    https://github.com/apache/zookeeper/pull/306
  
    I managed to get the Mesos unit tests for ZooKeeper ported to our CMake 
system, which much more thoroughly exercises the C client. I've integrated this 
patch and the CMake system with the Mesos build on Linux, and all our tests 
passed:
    
    ```
    [----------] 7 tests from ZooKeeperTest
    [ RUN      ] ZooKeeperTest.Auth
    [       OK ] ZooKeeperTest.Auth (6923 ms)
    [ RUN      ] ZooKeeperTest.SessionTimeoutNegotiation
    [       OK ] ZooKeeperTest.SessionTimeoutNegotiation (46 ms)
    [ RUN      ] ZooKeeperTest.Create
    [       OK ] ZooKeeperTest.Create (6770 ms)
    [ RUN      ] ZooKeeperTest.LeaderDetector
    [       OK ] ZooKeeperTest.LeaderDetector (57 ms)
    [ RUN      ] ZooKeeperTest.LeaderDetectorTimeoutHandling
    2017-07-14 
15:23:18,510:29970(0x7f01e4d0a700):ZOO_ERROR@handle_socket_error_msg@2409: 
Socket [127.0.0.1:43434] zk retcode=-4, errno=112(Host is down): failed while 
receiving a server response
    2017-07-14 
15:23:18,510:29970(0x7f01e4d0a700):ZOO_ERROR@handle_socket_error_msg@2384: 
Socket [127.0.0.1:43434] zk retcode=-4, errno=111(Connection refused): server 
refused to accept the client
    2017-07-14 
15:23:18,514:29970(0x7f01dffff700):ZOO_ERROR@handle_socket_error_msg@2384: 
Socket [127.0.0.1:43434] zk retcode=-4, errno=111(Connection refused): server 
refused to accept the client
    2017-07-14 
15:23:18,514:29970(0x7f01dffff700):ZOO_ERROR@handle_socket_error_msg@2384: 
Socket [127.0.0.1:43434] zk retcode=-4, errno=111(Connection refused): server 
refused to accept the client
    [       OK ] ZooKeeperTest.LeaderDetectorTimeoutHandling (50 ms)
    [ RUN      ] ZooKeeperTest.LeaderDetectorCancellationHandling
    [       OK ] ZooKeeperTest.LeaderDetectorCancellationHandling (54 ms)
    [ RUN      ] ZooKeeperTest.LeaderContender
    2017-07-14 
15:23:18,630:29970(0x7f01dffff700):ZOO_ERROR@handle_socket_error_msg@2409: 
Socket [127.0.0.1:38085] zk retcode=-4, errno=112(Host is down): failed while 
receiving a server response
    2017-07-14 
15:23:18,632:29970(0x7f01dffff700):ZOO_ERROR@handle_socket_error_msg@2428: 
Socket [127.0.0.1:38085] zk retcode=-112, errno=116(Stale file handle): 
sessionId=0x10000305fd80000 has expired.
    2017-07-14 
15:23:18,655:29970(0x7f01e4d0a700):ZOO_ERROR@handle_socket_error_msg@2409: 
Socket [127.0.0.1:38085] zk retcode=-4, errno=112(Host is down): failed while 
receiving a server response
    2017-07-14 
15:23:18,657:29970(0x7f01e4d0a700):ZOO_ERROR@handle_socket_error_msg@2428: 
Socket [127.0.0.1:38085] zk retcode=-112, errno=116(Stale file handle): 
sessionId=0x10000305fd80001 has expired.
    2017-07-14 
15:23:18,676:29970(0x7f01dffff700):ZOO_ERROR@handle_socket_error_msg@2409: 
Socket [127.0.0.1:38085] zk retcode=-4, errno=112(Host is down): failed while 
receiving a server response
    2017-07-14 
15:23:18,677:29970(0x7f01dffff700):ZOO_ERROR@handle_socket_error_msg@2384: 
Socket [127.0.0.1:38085] zk retcode=-4, errno=111(Connection refused): server 
refused to accept the client
    2017-07-14 
15:23:18,688:29970(0x7f01e4d0a700):ZOO_ERROR@handle_socket_error_msg@2384: 
Socket [127.0.0.1:38085] zk retcode=-4, errno=111(Connection refused): server 
refused to accept the client
    2017-07-14 
15:23:18,688:29970(0x7f01e4d0a700):ZOO_ERROR@handle_socket_error_msg@2384: 
Socket [127.0.0.1:38085] zk retcode=-4, errno=111(Connection refused): server 
refused to accept the client
    [       OK ] ZooKeeperTest.LeaderContender (304 ms)
    [----------] 7 tests from ZooKeeperTest (14204 ms total)
    
    [----------] Global test environment tear-down
    [==========] 7 tests from 1 test case ran. (14376 ms total)
    [  PASSED  ] 7 tests.
    ```
    
    And then I brought these changes over to Windows too, and while it's 
currently building with ~some~ a lot of irrelevant-to-this-patch hacks, they 
pass:
    
    ```
    [----------] 7 tests from ZooKeeperTest
    [ RUN      ] ZooKeeperTest.Auth
    [       OK ] ZooKeeperTest.Auth (7101 ms)
    [ RUN      ] ZooKeeperTest.SessionTimeoutNegotiation
    [       OK ] ZooKeeperTest.SessionTimeoutNegotiation (737 ms)
    [ RUN      ] ZooKeeperTest.Create
    [       OK ] ZooKeeperTest.Create (6752 ms)
    [ RUN      ] ZooKeeperTest.LeaderDetector
    [       OK ] ZooKeeperTest.LeaderDetector (107 ms)
    [ RUN      ] ZooKeeperTest.LeaderDetectorTimeoutHandling
    2017-07-17 
12:52:08,546:15936(0x3334):ZOO_ERROR@handle_socket_error_msg@2409: Socket 
[127.0.0.1:54312] zk retcode=-4, errno=32(Broken pipe): failed while receiving 
a server response
    [       OK ] ZooKeeperTest.LeaderDetectorTimeoutHandling (68 ms)
    [ RUN      ] ZooKeeperTest.LeaderDetectorCancellationHandling
    [       OK ] ZooKeeperTest.LeaderDetectorCancellationHandling (72 ms)
    [ RUN      ] ZooKeeperTest.LeaderContender
    2017-07-17 
12:52:08,709:15936(0x47c8):ZOO_ERROR@handle_socket_error_msg@2409: Socket 
[127.0.0.1:54336] zk retcode=-4, errno=32(Broken pipe): failed while receiving 
a server response
    2017-07-17 
12:52:08,714:15936(0x47c8):ZOO_ERROR@handle_socket_error_msg@2428: Socket 
[127.0.0.1:54336] zk retcode=-112, errno=19(No such device): 
sessionId=0x1001b9dddba0000 has expired.
    2017-07-17 
12:52:08,749:15936(0x39b8):ZOO_ERROR@handle_socket_error_msg@2409: Socket 
[127.0.0.1:54336] zk retcode=-4, errno=32(Broken pipe): failed while receiving 
a server response
    2017-07-17 
12:52:08,754:15936(0x39b8):ZOO_ERROR@handle_socket_error_msg@2428: Socket 
[127.0.0.1:54336] zk retcode=-112, errno=19(No such device): 
sessionId=0x1001b9dddba0001 has expired.
    2017-07-17 
12:52:08,788:15936(0xb94):ZOO_ERROR@handle_socket_error_msg@2409: Socket 
[127.0.0.1:54336] zk retcode=-4, errno=32(Broken pipe): failed while receiving 
a server response
    [       OK ] ZooKeeperTest.LeaderContender (701 ms)
    [----------] 7 tests from ZooKeeperTest (15548 ms total)
    
    [----------] Global test environment tear-down
    [==========] 7 tests from 1 test case ran. (16724 ms total)
    [  PASSED  ] 7 tests.
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to