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

Mario Fusco (JIRA) issues at jboss.org
Thu Apr 16 11:26:19 EDT 2015


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

Mario Fusco reassigned DROOLS-748:
----------------------------------

    Assignee: Mario Fusco  (was: Mark Proctor)


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