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

Dan Rosher updated SOLR-893:
----------------------------

    Attachment: SOLR-893.patch

If there are no rows to fetch from the datasource, then null the rowIterator .. 
this ensure that e.g. the query for nextDeletedRowKey can be subsequently run.

Also a test case added for deleting rows during a delta import added

> Unable to delete documents via SQL and deletedPkQuery with deltaimport
> ----------------------------------------------------------------------
>
>                 Key: SOLR-893
>                 URL: https://issues.apache.org/jira/browse/SOLR-893
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Dan Rosher
>             Fix For: 1.3
>
>         Attachments: SOLR-893.patch
>
>
> DocBuilder calls entityProcessor.nextModifiedRowKey which sets up rowIterator 
> for the modified rows, but when it comes time to call 
> entityProcessor.nextDeletedRowKey, this is skipped as although no rows are 
> returned from nextModifiedRowKey, rowIterator in SqlEntityProcessor.java is 
> still not null

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

Reply via email to