Return-Path: X-Original-To: apmail-geode-issues-archive@minotaur.apache.org Delivered-To: apmail-geode-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 063DB18CFC for ; Wed, 19 Aug 2015 21:08:48 +0000 (UTC) Received: (qmail 24375 invoked by uid 500); 19 Aug 2015 21:08:47 -0000 Delivered-To: apmail-geode-issues-archive@geode.apache.org Received: (qmail 24337 invoked by uid 500); 19 Aug 2015 21:08:47 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 24328 invoked by uid 99); 19 Aug 2015 21:08:47 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2015 21:08:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 729C7C0856 for ; Wed, 19 Aug 2015 21:08:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.774 X-Spam-Level: * X-Spam-Status: No, score=1.774 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 0nK9l_G1oKqT for ; Wed, 19 Aug 2015 21:08:46 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 8C0C020628 for ; Wed, 19 Aug 2015 21:08:46 +0000 (UTC) Received: (qmail 24246 invoked by uid 99); 19 Aug 2015 21:08:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2015 21:08:46 +0000 Date: Wed, 19 Aug 2015 21:08:46 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-228) NanoTimer2JUnitTest testReset can fail due to race conditions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14703749#comment-14703749 ] ASF subversion and git services commented on GEODE-228: ------------------------------------------------------- Commit 9efe74e4cfc8e7130b538cd67b9ec315c5fcec7a in incubator-geode's branch refs/heads/develop from [~dschneider] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;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: https://issues.apache.org/jira/browse/GEODE-228 > 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: https://builds.apache.org/job/Geode-nightly/188/testReport/junit/com.gemstone.gemfire.internal/NanoTimer2JUnitTest/testReset/ > junit.framework.AssertionFailedError: create time expected to be in the range [-19899..19899] but was:<20551> > at junit.framework.Assert.fail(Assert.java:57) > at junit.framework.TestCase.fail(TestCase.java:227) > at com.gemstone.gemfire.internal.NanoTimer2JUnitTest.assertApproximate(NanoTimer2JUnitTest.java:74) > at com.gemstone.gemfire.internal.NanoTimer2JUnitTest.testReset(NanoTimer2JUnitTest.java:60) -- This message was sent by Atlassian JIRA (v6.3.4#6332)