lucene-dev mailing list archives

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


Robert Muir 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.

I think its also trappy to wait for merges by default: many
people have rapidly changing content and time to visibility 
is important.

Unfortunately we know some apps close() the IndexWriter whenever
they make changes visible: you can tell me these apps are broken,
etc, etc, but our PMC just released one of those this weekend.

> 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