[
https://issues.apache.org/jira/browse/LUCENE-4246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13538722#comment-13538722
]
Michael McCandless commented on LUCENE-4246:
--------------------------------------------
Maybe we could rename the current "close" to "commitAndClose", which would wait
on merges (maybe take a boolean to instead abort merges), commit changes, close
(for the simplicty/convenience for basic apps).
And then "close" simply closes.
The only issue is this is a trappy migration path for apps ... if they miss the
back-compat-break advertisement that IW.close no longer commits then they
silently lose changes.
> 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.1
>
>
--
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]