[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colin Patrick McCabe updated ZOOKEEPER-1626:
--------------------------------------------

    Attachment: ZOOKEEPER-1366.006.patch

Thanks for pointing out "make run-check".  I didn't know about that.  It looks 
like what we need to do is override clock_gettime in the tests in the same way 
that we override gettimeofday.  This patch does that.

On an unrelated note, this test fails for me on (unaltered) trunk:

{code}
/home/cmccabe/zookeeper/src/c/tests/TestClient.cc:364: Assertion: equality 
assertion failed [Expected: -101, Actual  : -4]
{code}

I originally thought it might an environment thing, but it reproduced on both 
OpenSUSE 12.1 and Ubuntu 12.04.  I didn't see a JIRA for that.
                
> Zookeeper C client should be tolerant of clock adjustments 
> -----------------------------------------------------------
>
>                 Key: ZOOKEEPER-1626
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1626
>             Project: ZooKeeper
>          Issue Type: Sub-task
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1366.001.patch, ZOOKEEPER-1366.002.patch, 
> ZOOKEEPER-1366.003.patch, ZOOKEEPER-1366.004.patch, ZOOKEEPER-1366.006.patch
>
>
> The Zookeeper C client should use monotonic time when available, in order to 
> be more tolerant of time adjustments.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to