avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Baldassari (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-994) TestFileSpanStorage.testTonsOfSpans() fails on my slow VM
Date Tue, 17 Jan 2012 15:29:46 GMT

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

James Baldassari updated AVRO-994:
----------------------------------

    Affects Version/s: 1.6.0
                       1.6.1
        Fix Version/s: 1.7.0
                       1.6.2
    
> TestFileSpanStorage.testTonsOfSpans() fails on my slow VM
> ---------------------------------------------------------
>
>                 Key: AVRO-994
>                 URL: https://issues.apache.org/jira/browse/AVRO-994
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.6.0, 1.6.1
>            Reporter: James Baldassari
>            Priority: Minor
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: AVRO-994.patch
>
>
> {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

        

Mime
View raw message