lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <>
Subject [jira] [Updated] (SOLR-2668) DIH - multithreaded DocBuilder ignores onError Attribute
Date Wed, 24 Aug 2011 12:49:29 GMT


Shalin Shekhar Mangar updated SOLR-2668:

    Attachment: SOLR-2668.patch

I was looking at this problem again today. The onError attributes are not used to deal with
exceptions from EntityProcessor.init() method. They are only used for reading rows, applying
transformers and inserting documents into Solr.

The real problem was that in multi-threaded mode, the exceptions from EntityProcessor.init
were being eaten up so a commit was called instead of rolling back the changes. I've fixed
that to re-throw the exception up the hierarchy.

> DIH - multithreaded DocBuilder ignores onError Attribute
> --------------------------------------------------------
>                 Key: SOLR-2668
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.3
>            Reporter: Frank Wesemann
>            Assignee: Shalin Shekhar Mangar
>         Attachments: SOLR-2668.patch, SOLR-2668.patch
> If the EntityProcessor of a subentity throws an Exception in its init() Method, DocBuilder
ignores onError=continue or skip attributes on the parent entity. DocBuilder stops immediately
and logs "Import completed successfully".

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message