lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/LUCENE-4246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421320#comment-13421320
] 

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
why.

                
> Fix IndexWriter.close() to not commit or wait for pending merges
> ----------------------------------------------------------------
>
>                 Key: LUCENE-4246
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4246
>             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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message