lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4246) Fix IndexWriter.close() to not commit or wait for pending merges
Date Wed, 02 Apr 2014 14:47:22 GMT


Simon Willnauer commented on LUCENE-4246:

I want to revisit this for 4.8! We recently fixed rollback and given what rollback looks like
now I think it should actually be called close since this is what it does it flushes all stuff
and shuts IW down. IMO that is exactly what I would expect close to do. Yet, the simplest
solution to this issue would be rename close to commitAndClose() and rollback to close() and
we are good to go. I guess it's not going to be that simple but after I ran into the issue
today that somebody used a NoMergeScheduler and IW#close() was waiting forever right here:

- timed waiting on org.apache.lucene.index.IndexWriter@439740e3
	at org.apache.lucene.index.IndexWriter.doWait(
	at org.apache.lucene.index.IndexWriter.waitForMerges(
	at org.apache.lucene.index.IndexWriter.finishMerges(
	at org.apache.lucene.index.IndexWriter.closeInternal(
	at org.apache.lucene.index.IndexWriter.close(

I am even more convinced that we have to fix this soon though.

> Fix IndexWriter.close() to not commit or wait for pending merges
> ----------------------------------------------------------------
>                 Key: LUCENE-4246
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 4.8

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message