You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2014/09/11 20:32:33 UTC

[jira] [Reopened] (UIMA-3992) test case for JCasHashMap multi-threaded not reliable

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

Marshall Schor reopened UIMA-3992:
----------------------------------

saw another failure.  See if can increase the reliability of the test (assuming it isn't a real failure, of course).

> test case for JCasHashMap multi-threaded not reliable
> -----------------------------------------------------
>
>                 Key: UIMA-3992
>                 URL: https://issues.apache.org/jira/browse/UIMA-3992
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>    Affects Versions: 2.6.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.6.1SDK
>
>
> There is a test in the JCasHashMapTest which runs multiple threads, and depends on sub threads running ahead of the main thread, but it uses sleep delays to attempt to achieve that. This is not reliable, in case the whole Java process is pre-empted for longer than the longer sleep.  Change this to use, in addition, thread priorities - making the main thread have a lower priority than the sub-threads, so if the wait times are both expired, still the sub-thread runs before the main test thread. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)