[
https://issues.apache.org/jira/browse/LUCENE-4246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539040#comment-13539040
]
Robert Muir commented on LUCENE-4246:
-------------------------------------
{quote}
These are crazy semantics.
{quote}
+1
{quote}
The proper way to close IW today is:
try {
writer.close();
} catch (Throwable t) {
writer.rollback();
}
{quote}
Then we should remove java.io.Closeable interface from IndexWriter. This is
especially bad for java7 users who have syntactical support from the language
for doing things "the wrong way".
The proper way to close IndexWriter should be: writer.close()
> 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]