You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org> on 2009/07/15 17:54:14 UTC

[jira] Commented: (UIMA-1439) Fix interemittent hangs in UIMA AS when stopping the JMS listener

    [ https://issues.apache.org/jira/browse/UIMA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731530#action_12731530 ] 

Jerry Cwiklik commented on UIMA-1439:
-------------------------------------

Modified destroy() method of the UIMA AS listener to shutdown the ThreadPoolTaskExecutor and than check for number of active threads. Since the thread the initiated call to destroy() maybe one of those managed by the executor allow for one active thread when determining if the executor is shutdown.

> Fix interemittent hangs in UIMA AS when stopping the JMS listener
> -----------------------------------------------------------------
>
>                 Key: UIMA-1439
>                 URL: https://issues.apache.org/jira/browse/UIMA-1439
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>
> When stopping UIMA AS listener, the ThreadPoolTaskExecutor shutdown method is called and the code than waits for all threads managed by the executor to stop. The problem is that listener's stop method may be called from one of the threads that are being managed by the executor. The executor tries to stop the thread and the thread tries to stop the executor. This leads to a hang. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.