You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Frank Wesemann (JIRA)" <ji...@apache.org> on 2011/05/31 18:40:47 UTC

[jira] [Issue Comment Edited] (SOLR-2186) DataImportHandler multi-threaded option throws exception

    [ https://issues.apache.org/jira/browse/SOLR-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041652#comment-13041652 ] 

Frank Wesemann edited comment on SOLR-2186 at 5/31/11 4:39 PM:
---------------------------------------------------------------

The added patch addresses the problem that EntityProcessors do not have a usable VariableResolver in their {{init()}} Method.
This is done in the EntityRunner's {{runAThread()}} Method by first initing the EntityProcessorWrapper and after that initing the Entityprocessor.
By changing the order as described the according namespaces a created on the variableResolver before it can be used by the EntityProcessor.

Additionally I changed the loglevel for the "adding a row" messages to "debug".

This patch does don't solve the problem described in SOLR-2544.
As a workaround EntityProcessors may call context.getVariableResolver().replaceTokens()




      was (Author: wese):
    The added patch addresses the problem that EntityProcessors do not have a usable VariableResolver in their {{init()}} Method.
This is done in the EntityRunner's {{runAThread()}} Method by first initing the EntityProcessorWrapper and after that initing the Entityprocessor.
By changing the order as described the according namespaces a created on the variableResolver before it can be used by the EntityProcessor.

Additionally I changed the loglevel for the "adding a row" messages to "debug".

This patch does don't solve the problem described in SOLR-2544.



  
> DataImportHandler multi-threaded option throws exception
> --------------------------------------------------------
>
>                 Key: SOLR-2186
>                 URL: https://issues.apache.org/jira/browse/SOLR-2186
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>            Reporter: Lance Norskog
>            Assignee: Grant Ingersoll
>         Attachments: Solr-2186.patch, TikaResolver.patch
>
>
> The multi-threaded option for the DataImportHandler throws an exception and the entire operation fails. This is true even if only 1 thread is configured via *threads='1'*

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org