[
https://issues.apache.org/jira/browse/LUCENE-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040774#comment-13040774
]
Michael McCandless commented on LUCENE-3147:
--------------------------------------------
{quote}
bq. But: why do we ever "abort" a full flush...? It looks like it happens
because one of the DWPTs hits an exc while flushing...?
I think this is the way to go here. if one DWPT can not flush why would be
continue flushing the remaining ones. You will need to call rollback anyway or
reindex all documents since the last commit. Its unnecessary to flush those
DWPT since we are already lost the failed segment.
{quote}
In theory, if disk space freed up, the other DWPTs could flush? Ie the failure
of one DWPT to flush should only "have to" above that one DWPT?
But I agree, I think it's OK if we leave it this way for now... you're right
that the app is going to have to do its own "recovery" anyway. Just feels like
we shouldn't be discarding healthy DWPTs... but I think it's minor.
> MockDirectoryWrapper should track open file handles of IndexOutput too
> ----------------------------------------------------------------------
>
> Key: LUCENE-3147
> URL: https://issues.apache.org/jira/browse/LUCENE-3147
> Project: Lucene - Java
> Issue Type: Test
> Components: general/test
> Reporter: Shai Erera
> Assignee: Shai Erera
> Priority: Minor
> Fix For: 3.2, 4.0
>
> Attachments: LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch,
> LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch,
> LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch,
> LUCENE-3147.patch, LUCENE-3147.patch
>
>
> MockDirectoryWrapper currently tracks open file handles of IndexInput only.
> Therefore IO files that are not closed do not fail our tests, which can then
> lead to test directories fail to delete on Windows. We should make sure all
> open files are tracked and if they are left open, fail the test. I'll attach
> a patch shortly.
--
This message is automatically generated by JIRA.
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]