lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3197) Optimize runs forever if you keep deleting docs at the same time
Date Tue, 14 Jun 2011 17:31:47 GMT


Yonik Seeley commented on LUCENE-3197:

Regardless of if one views this as a bug or not, I think the more useful semantics are to
at least "merge all of the current segments into 1 and remove all *currently* deleted docs"
(i.e. I agree with Mike).  The alternative is that optimize is dangerous in the presence of
index updates (i.e. applications should discontinue updates if they call optimize).

> Optimize runs forever if you keep deleting docs at the same time
> ----------------------------------------------------------------
>                 Key: LUCENE-3197
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 3.3, 4.0
> Because we "cascade" merges for an optimize... if you also delete documents while the
merges are running, then the merge policy will see the resulting single segment as still not
optimized (since it has pending deletes) and do a single-segment merge, and will repeat indefinitely
(as long as your app keeps deleting docs).

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message