You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alex Rudyy (Updated) (JIRA)" <ji...@apache.org> on 2012/02/03 16:57:54 UTC

[jira] [Updated] (QPID-3794) Test StatisticsCounterTest.testPeakOutOfOrder fails sporadically on test profile java-mms-spawn.0-10

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

Alex Rudyy updated QPID-3794:
-----------------------------

    Attachment: 0001-QPID-3794-fixes-ocasional-test-StatisticsCounterTest.patch

Attached a patch with a potential problem fix.

I could not reproduce the issue locally.

I believe that the only reason why this test failed is that the sequential invocations of Thread.sleep() caused current thread to sleep for more time than it was expected.

Thread.sleep(1500);
Thread.sleep(1000);

The total expected sleeping interval is 2500 mls.

It seems that for failed test the thread slept for more than 3000+ mls in total during first 2 sleep invocations and as result of it the counter peak value was evaluated due to finishing the sample period which is 1 second.

It seems that thread overslept for more than 500mls which is quite unexpected value. Perhaps, extra GC activity caused it. I am not sure.


                
> Test StatisticsCounterTest.testPeakOutOfOrder fails sporadically on test profile java-mms-spawn.0-10 
> -----------------------------------------------------------------------------------------------------
>
>                 Key: QPID-3794
>                 URL: https://issues.apache.org/jira/browse/QPID-3794
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.15
>            Reporter: Alex Rudyy
>            Assignee: Alex Rudyy
>         Attachments: 0001-QPID-3794-fixes-ocasional-test-StatisticsCounterTest.patch
>
>
> Test StatisticsCounterTest.testPeakOutOfOrder fails sporadically on test profile java-mms-spawn.0-10 
> junit.framework.AssertionFailedError: expected:<0.0> but was:<3000.0>
> 	at org.apache.qpid.server.stats.StatisticsCounterTest.testPeakOutOfOrder(StatisticsCounterTest.java:110)

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org