lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <>
Subject Re: [jira] Commented: (LUCENE-743) IndexReader.reopen()
Date Mon, 12 Nov 2007 23:42:35 GMT
robert engels wrote:
> The commit "in flight" cannot (SHOULD NOT) be deleting segments if they
> are in use.  That a caller could issue a reopen call means there are
> segments in use by definition (or they would have nothing to reopen).

Reopen still works correctly, even if there are no segments left that
the old reader used. It will simply behave as an "open" then.

An example is an index that was optimized. In that case all old segments
are gone and if you reopen your reader you will get a new SegmentReader
that opens the new segment.

The old reader can still access the old segments because of the OS'
"delete on last close". Or, on Windows, the IndexWriter will re-try to
delete the old segments until the delete was successful (i. e. after the
last reader accessing them was closed).


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

View raw message