uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaroslaw Cwiklik (Jira)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-6210) CPE swallows exceptions thrown in collectionProcessComplete
Date Thu, 02 Apr 2020 20:06:00 GMT

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

Jaroslaw Cwiklik commented on UIMA-6210:

It looks like the exception is logged but no action is taken when collectionProcessingComplete()
throws an exception. I can certainly invoke registered callbacks but one worry I have is that
it may break existing apps which will now see a failure. Just looking for consensus that calling
listeners with an error (previously silent) on cpc failure is the right thing to do. 

- Jerry

> CPE swallows exceptions thrown in collectionProcessComplete
> -----------------------------------------------------------
>                 Key: UIMA-6210
>                 URL: https://issues.apache.org/jira/browse/UIMA-6210
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Collection Processing
>            Reporter: Richard Eckart de Castilho
>            Assignee: Jaroslaw Cwiklik
>            Priority: Major
> When an analysis engine is deployed into a CPE and run, then exceptions thrown by the
{{collectionProcessComplete}} method of the analysis engine are swallowed by the CPE {{ProcessingContainer_Impl}}.

> Instead of being swallowed, I would expect them to be reported to any {{StatusCallbackListener}}
registered with the CPE.

This message was sent by Atlassian Jira

View raw message