[ 
https://issues.apache.org/jira/browse/SOLR-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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: https://issues.apache.org/jira/browse/SOLR-1549
>             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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to