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

Julian Reschke updated OAK-1564:
--------------------------------

    Attachment: OAK-1564.diff

This patch adds a method to calculate the average granularity of 
System.currentTimeMillis() in 1/1000ms, invoked from main().

On my desktop, it first returned 10000, but now reliably says 1000, and I don't 
believe I have changed anything. On my desktop, it always says ~1000.

Interested parties: please test on your machines and report the results.

> ClockTest on Windows fails
> --------------------------
>
>                 Key: OAK-1564
>                 URL: https://issues.apache.org/jira/browse/OAK-1564
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>         Environment: JAVA_HOME=C:\Program Files\Java\jdk1.7.0_51
> NUMBER_OF_PROCESSORS=2
> OS=Windows_NT
> PROCESSOR_ARCHITECTURE=AMD64
> PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 46 Stepping 6, GenuineIntel
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=2e06
>            Reporter: Michael Dürig
>            Assignee: Julian Reschke
>             Fix For: 0.20
>
>         Attachments: OAK-1564.diff
>
>
> {{ClockTest.testClockDrift}} fails on Windows:
> {noformat}
> junit.framework.AssertionFailedError: unexpected drift: 26 (limit 20)
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at org.apache.jackrabbit.oak.stats.ClockTest.testClockDrift(ClockTest.java:72)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to