Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E041CB83A for ; Mon, 16 Jan 2012 08:25:19 +0000 (UTC) Received: (qmail 69106 invoked by uid 500); 16 Jan 2012 08:25:19 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 68740 invoked by uid 500); 16 Jan 2012 08:25:03 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 68685 invoked by uid 99); 16 Jan 2012 08:25:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 08:25:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 08:24:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2541914F5DF for ; Mon, 16 Jan 2012 08:24:39 +0000 (UTC) Date: Mon, 16 Jan 2012 08:24:39 +0000 (UTC) From: "James Baldassari (Created) (JIRA)" To: dev@avro.apache.org Message-ID: <1228849389.43926.1326702279154.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AVRO-994) TestFileSpanStorage.testTonsOfSpans() fails on my slow VM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 TestFileSpanStorage.testTonsOfSpans() fails on my slow VM --------------------------------------------------------- Key: AVRO-994 URL: https://issues.apache.org/jira/browse/AVRO-994 Project: Avro Issue Type: Bug Reporter: James Baldassari Priority: Minor {noformat} Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 15.554 sec <<< FAILURE! testTonsOfSpans(org.apache.avro.ipc.trace.TestFileSpanStorage) Time elapsed: 3.853 sec <<< FAILURE! java.lang.AssertionError: expected:<50000> but was:<42356> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at org.apache.avro.ipc.trace.TestFileSpanStorage.testTonsOfSpans(TestFileSpanStorage.java:70) {noformat} The issue seems to be the {{Thread.sleep(2000)}} on line 66. Doubling this to 4000ms causes the test to pass. In general it might be better to make this sleep event-based rather than using a fixed sleep time. If that isn't possible, then maybe using some sort of a retry loop would work. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira