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:46:14 UTC

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

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.


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

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-1439.
-------------------------------

    Resolution: Fixed

Fixed under JIRA UIMA-1433. Bug in caching JMS connections prevented cleanup code from stopping AMQ threads.

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


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

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-1439.
-------------------------------

    Resolution: Fixed

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


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

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik reopened UIMA-1439:
---------------------------------


Fix a hang in the service listener that prevents the listener from stopping. ActiveMQ Scheduler threads dont seem to stop and the code that checks for active threads is waiting for them to stop. 

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


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

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik updated UIMA-1439:
--------------------------------

    Fix Version/s: 2.3AS

> 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
>             Fix For: 2.3AS
>
>
> 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.


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

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
    [ 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.