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/08/04 21:00:15 UTC
[jira] Created: (UIMA-1477) UIMA AS client hangs while handling CPC
request
UIMA AS client hangs while handling CPC request
------------------------------------------------
Key: UIMA-1477
URL: https://issues.apache.org/jira/browse/UIMA-1477
Project: UIMA
Issue Type: Bug
Components: Async Scaleout
Reporter: Jerry Cwiklik
Assignee: Jerry Cwiklik
When UIMA AS client is initialized it acquires a CPC semaphore to control when to send a CPC request. The semaphore is released when a number of CASes sent equals a number of CASes received. Only when equal the semaphore is released and the CPC request is allowed to be sent.
In a case when a client is initialized but never sends any CASes this logic fails. The semaphore is never released causing a hang while trying to acquire a semaphore in collectionProcessComplete().
Add a new test case to replicate the problem.
Fix the code to handle sending CPC from a client that doesnt send CASes to a service.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (UIMA-1477) UIMA AS client hangs while handling CPC
request
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerry Cwiklik closed UIMA-1477.
-------------------------------
Resolution: Fixed
Fixed UIMA AS client to allow it to send a CPC request to a service even though it has not sent any CASes.
> UIMA AS client hangs while handling CPC request
> ------------------------------------------------
>
> Key: UIMA-1477
> URL: https://issues.apache.org/jira/browse/UIMA-1477
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
>
> When UIMA AS client is initialized it acquires a CPC semaphore to control when to send a CPC request. The semaphore is released when a number of CASes sent equals a number of CASes received. Only when equal the semaphore is released and the CPC request is allowed to be sent.
> In a case when a client is initialized but never sends any CASes this logic fails. The semaphore is never released causing a hang while trying to acquire a semaphore in collectionProcessComplete().
> Add a new test case to replicate the problem.
> Fix the code to handle sending CPC from a client that doesnt send CASes to a service.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (UIMA-1477) UIMA AS client hangs while handling
CPC request
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerry Cwiklik reopened UIMA-1477:
---------------------------------
The hang is still happening in the UIMA AS client when calling collectionProcessComplete()
> UIMA AS client hangs while handling CPC request
> ------------------------------------------------
>
> Key: UIMA-1477
> URL: https://issues.apache.org/jira/browse/UIMA-1477
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
>
> When UIMA AS client is initialized it acquires a CPC semaphore to control when to send a CPC request. The semaphore is released when a number of CASes sent equals a number of CASes received. Only when equal the semaphore is released and the CPC request is allowed to be sent.
> In a case when a client is initialized but never sends any CASes this logic fails. The semaphore is never released causing a hang while trying to acquire a semaphore in collectionProcessComplete().
> Add a new test case to replicate the problem.
> Fix the code to handle sending CPC from a client that doesnt send CASes to a service.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (UIMA-1477) UIMA AS client hangs while handling CPC
request
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerry Cwiklik closed UIMA-1477.
-------------------------------
Resolution: Fixed
Methods in JmsOutputChannel were initializing TextMessage with null. This caused NPE on 64 bit jvm preventing CPC reply from being sent. On 32 bit linux/windows machines this problem never occurs.
> UIMA AS client hangs while handling CPC request
> ------------------------------------------------
>
> Key: UIMA-1477
> URL: https://issues.apache.org/jira/browse/UIMA-1477
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
>
> When UIMA AS client is initialized it acquires a CPC semaphore to control when to send a CPC request. The semaphore is released when a number of CASes sent equals a number of CASes received. Only when equal the semaphore is released and the CPC request is allowed to be sent.
> In a case when a client is initialized but never sends any CASes this logic fails. The semaphore is never released causing a hang while trying to acquire a semaphore in collectionProcessComplete().
> Add a new test case to replicate the problem.
> Fix the code to handle sending CPC from a client that doesnt send CASes to a service.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (UIMA-1477) UIMA AS client hangs while handling CPC
request
Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jerry Cwiklik updated UIMA-1477:
--------------------------------
Fix Version/s: 2.3AS
> UIMA AS client hangs while handling CPC request
> ------------------------------------------------
>
> Key: UIMA-1477
> URL: https://issues.apache.org/jira/browse/UIMA-1477
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
> Fix For: 2.3AS
>
>
> When UIMA AS client is initialized it acquires a CPC semaphore to control when to send a CPC request. The semaphore is released when a number of CASes sent equals a number of CASes received. Only when equal the semaphore is released and the CPC request is allowed to be sent.
> In a case when a client is initialized but never sends any CASes this logic fails. The semaphore is never released causing a hang while trying to acquire a semaphore in collectionProcessComplete().
> Add a new test case to replicate the problem.
> Fix the code to handle sending CPC from a client that doesnt send CASes to a service.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.