Simon Willnauer created LUCENE-4629:
---------------------------------------
Summary: IndexWriter fails to delete documents if
Iterator<IndexDocument> throws an exception
Key: LUCENE-4629
URL: https://issues.apache.org/jira/browse/LUCENE-4629
Project: Lucene - Core
Issue Type: Bug
Affects Versions: 4.0
Reporter: Simon Willnauer
Fix For: 4.1, 5.0
In DWPT we iterator over a document block and roll back documents if one of the
docs fails with a non-aborting exception. Yet, we miss to delete those document
if the iterator itself throws an exception. Given the fact that we allow an
Iterable on IW we should be prepared for RT exceptions since these documents
might be created in a stream fashing rather than already build up. IMO its a
valid usecase if you have large documents to not materialize them in memory
before indexing or at least we don't require this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]