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). -Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]