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

Robert Muir commented on LUCENE-4246:
-------------------------------------

I think its related: I think close() is too complicated today.

In my opinion close() should just close resources: we should try to minimize 
what it does so it can easily be
used in e.g. finally block.

As far as commit() goes, I think you should always be explicit about that and 
not mix it up with close().

As far as pending merges, if we want to have an option to do that, I would 
prefer it not be the default
Closeable behavior of close(), instead something separate like shutdown().

                
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to