lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Busch (JIRA)" <>
Subject [jira] Commented: (LUCENE-887) Interruptible segment merges
Date Sat, 02 Jun 2007 22:33:15 GMT


Michael Busch commented on LUCENE-887:

> I'm also nervous that such a broad change expands the API of Directory
> to achieve a fairly specific functionality in IndexWriter (stop a
> merge).

I agree. Adding public methods to Directory with javadocs saying
"Please don't call me!" is probably not very desirable.

> Also, looking forward to LUCENE-843, I *think* we will need a
> different approach anyways (I think one that specifically targets the
> merging, at a higher level). Because with LUCENE-843, IndexWriter
> directly streams stored fields & vectors to disk and so you'd have to
> be extremely careful not to interrupt that IO (vs the IO being done
> for merging).

OK I understand. Right, this approach would interrupt those streams as 
well. I'm not very familiar with your 843 patch yet, hopefully after 2.2
is out I'll have some time...

> Interruptible segment merges
> ----------------------------
>                 Key: LUCENE-887
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Index
>            Reporter: Michael Busch
>            Assignee: Michael Busch
>            Priority: Minor
>         Attachments:
> Adds the ability to IndexWriter to interrupt an ongoing merge. This might be necessary
when Lucene is e. g. running as a service and has to stop indexing within a certain period
of time due to a shutdown request.
> A solution would be to add a new method shutdown() to IndexWriter which satisfies the
following two requirements:
> - if a merge is happening, abort it
> - flush the buffered docs but do not trigger a merge 
> See also discussions about this feature on java-dev:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message