lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4246) Fix IndexWriter.close() to not commit or wait for pending merges
Date Tue, 24 Jul 2012 10:48:34 GMT


Michael McCandless commented on LUCENE-4246:

Pain or not, waiting for merges is important, to avoid the starvation
case where the user never waits for merges and so the biggish ones
never get a chance to complete.

We can't make that the default: it's too trappy.  Apps that open an
IW, index the current batch of new or changed docs, close IW (a
reasonable way to use IW), would at some point get waaay too many
segments in their index.

Or: maybe, close() could throw an exception if merges are still in
progress (just like it should (I think) if pending changes weren't
committed nor rolled back)?  And, add a public killMerges method (just
calls waitForMerges(false)).  This way if you try to close without
having first killed or waited for merges, the close fails and you see

> Fix IndexWriter.close() to not commit or wait for pending merges
> ----------------------------------------------------------------
>                 Key: LUCENE-4246
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 4.0

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message