[
https://issues.apache.org/jira/browse/LUCENE-4246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539045#comment-13539045
]
Uwe Schindler commented on LUCENE-4246:
---------------------------------------
Robert: Yes it was not 100% clear to me what your comment wanted to say.
close() should do at least as possible. And if you use try-with-resources and
forget to commit, the cleanup (similar to our IOUtils) would close IW
correctly, but don't commit. The use then knows that something is wrong. By the
way, this is similar to SQL and transactions with try-with-resources. There
were lengthly discussion about that on the JDK mailing list before Java 7.
Although close() *may* do more than just closing (if autocommit is enabled, it
may also commit), they decided to add Closeable (e.g., see
http://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html) - but the
discussion here was similar.
> 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]