jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 60444] New: Intermittend failure of TestHTTPMirrorThread#testSleep()
Date Mon, 05 Dec 2016 21:34:54 GMT

            Bug ID: 60444
           Summary: Intermittend failure of
           Product: JMeter
           Version: 3.0
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HTTP
  Target Milestone: ---

Created attachment 34500
complete log of ant build

This might be OS specific: Running the tests, I'm occasionally stalled by the
following test failure:

     [java] There was 1 failure:
     [java] 1)
     [java] junit.framework.AssertionFailedError: Expected > 1000 992
     [java]     at
     [java]     at junit.framework.Assert.assertTrue(
     [java]     at junit.framework.TestCase.assertTrue(
     [java]     at

I'm not too certain about the primary cause, which I think, is one of the
a.) Thread.sleep() relies on the granularity of the internal clock, which might
shave off some millis from the 1000 ms, that have been asked for.
b.) The JVM generally isn't guaranteed to wait the full time given anyway, as
the sleep might get interrupted.

Now I'm a bit at a loss, what is the intention here: 
If accuracy in maintaining the contract is required, I may fix this, by
tracking the actual time spent waiting arround the invocation of
@ HttpMirrorThread:223.

else we might just relax the assertion wihin the test.

Do we ever need this functionality?


The issue is annoying, since it breaks the test execution in one out of three
executions on my machine, and it did so since I startet to dig through the code
with Rel 3.0

You are receiving this mail because:
You are the assignee for the bug.
View raw message