[ https://issues.apache.org/jira/browse/UIMA-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655240#action_12655240 ]
Adam Lally commented on UIMA-1223: ---------------------------------- There is a problem in this patch due to UIMA-1248, which causes concurrent initialization of AE instances sharing a ResourceManager to fail intermittently. We should work around this by synchronizing the call to UIMAFramework.produceAnalysisEngine so that only one instance can be initialized at a time, until UIMA-1248 gets fixed. > Annotators should be initialized in the same thread that their process method > will later be called on > ----------------------------------------------------------------------------------------------------- > > Key: UIMA-1223 > URL: https://issues.apache.org/jira/browse/UIMA-1223 > Project: UIMA > Issue Type: Bug > Components: Async Scaleout > Affects Versions: 2.2.2 > Reporter: Adam Lally > Assignee: Jerry Cwiklik > Attachments: uimaj-as-activemq-UIMA-1223-patch.txt, > uimaj-as-core-UIMA-1223-patch.txt > > > It is more convenient if an annotator is initialized on the same thread that > it is later called on. Some components may use thread-local data and they > won't work in UIMA-AS currently. Another advantage of doing the > initialization in the processing thread is that you could initialize multiple > instances of the annotator in parallel instead of sequentially, which may be > faster for a multi-core machine. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.