[jboss-jira] [JBoss JIRA] (DROOLS-748) MultithreadTest.testSlidingTimeWindows() uses unreliable Thread.sleep(1).

Tibor Zimányi (JIRA) issues at jboss.org
Mon Apr 13 05:56:18 EDT 2015


     [ https://issues.jboss.org/browse/DROOLS-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Zimányi reopened DROOLS-748:
----------------------------------


> 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: Mark Proctor
>            Priority: Minor
>
> 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.3.11#6341)



More information about the jboss-jira mailing list