lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kanarsky (JIRA)" <>
Subject [jira] Updated: (SOLR-1549) SqlEntityProcessor does not recognize onError attribute
Date Sat, 08 May 2010 01:54:49 GMT


Alexander Kanarsky updated SOLR-1549:

    Attachment: SOLR-1549.patch

Attached is the patch for JdbcDataSource to use the onError value properly and handle SQLException
thrown when the actual data does not match the column type. This is the patch for DIH version
included in Solr 1.4 distribution.  

> SqlEntityProcessor does not recognize onError attribute
> -------------------------------------------------------
>                 Key: SOLR-1549
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4, 1.5
>            Reporter: Sascha Szott
>            Assignee: Noble Paul
>            Priority: Minor
>             Fix For: 1.5
>         Attachments: SOLR-1549.patch
> Unfortunately, the SqlEntityProcessor does not recognize the value of an entity's onError
attribute in DIH's data config file. Therefore, in cases where SQL exceptions are thrown somewhere
inside the constructor of ResultSetIterators (which is an inner class of JdbcDataSource),
Solr's import exits immediately, even though onError is set to continue or skip.
> In my opinion, use cases exist that will profit from database related exception handling
inside of Solr (e.g., in cases where the existence of certain database tables or views is
not predictable).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message