geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (GEODE-228) NanoTimer2JUnitTest testReset can fail due to race conditions
Date Wed, 19 Aug 2015 21:08:46 GMT


ASF subversion and git services commented on GEODE-228:

Commit 9efe74e4cfc8e7130b538cd67b9ec315c5fcec7a in incubator-geode's branch refs/heads/develop
from [~dschneider]
[;h=9efe74e ]

GEODE-228: fix intermittent failures in NanoTimer tests

- NanoTimer2JUnitTest has been removed since it was an old
test that has been replaced by NanoTimerJUnitTest.
- NanoTimer can now be constructed with a TimeService.
 This allows unit tests to insert a different clock.
- NanoTimerJUnitTest now uses its own TimeService when
testing NanoTimer which prevents intermittent failures.

> NanoTimer2JUnitTest testReset can fail due to race conditions
> -------------------------------------------------------------
>                 Key: GEODE-228
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Minor
> NanoTimer2JUnitTest can intermittently. The test is dependent and the system clock and
the jvm not having any unexpected pauses.
> Here is a recent failure from the nightly build:
> junit.framework.AssertionFailedError: create time expected to be in the range [-19899..19899]
but was:<20551>
> 	at
> 	at
> 	at com.gemstone.gemfire.internal.NanoTimer2JUnitTest.assertApproximate(
> 	at com.gemstone.gemfire.internal.NanoTimer2JUnitTest.testReset(

This message was sent by Atlassian JIRA

View raw message