[
https://issues.apache.org/jira/browse/SOLR-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653176#action_12653176
]
Noble Paul commented on SOLR-893:
---------------------------------
instead of adding the check in each method it can be added to the getNext()
method
as follows
{code}
if (rowIterator.hasNext())
return rowIterator.next();
query = null;
rowIterator = null;
return null;
{code}
> 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.