[jboss-jira] [JBoss JIRA] (DROOLS-748) MultithreadTest.testSlidingTimeWindows() uses unreliable Thread.sleep(1).
Lukáš Petrovický (JIRA)
issues at jboss.org
Mon Jan 4 06:58:10 EST 2016
[ https://issues.jboss.org/browse/DROOLS-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukáš Petrovický updated DROOLS-748:
------------------------------------
Labels: reported-by-qe (was: )
> MultithreadTest.testSlidingTimeWindows() uses unreliable Thread.sleep(1).
> -------------------------------------------------------------------------
>
> Key: DROOLS-748
> URL: https://issues.jboss.org/browse/DROOLS-748
> Project: Drools
> Issue Type: Bug
> Reporter: Tibor Zimányi
> Assignee: Mario Fusco
> Priority: Minor
> Labels: reported-by-qe
>
> In MultithreadTest classes (there are two of them) method testSlidingTimeWindows() uses unreliable Thread.sleep(1) call for waiting for fact insertion. Thread.sleep(1) doesn't wait for exactly 1 millisecond, because there is overhead from thread scheduler. This overhead can be pretty large in contrast to expected 1ms sleep.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list