lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Keegan" <>
Subject Re: Nio File Caching & Performance Test
Date Thu, 01 Jun 2006 23:23:07 GMT
My search process is using MMapDirectory on a read-only index via:

Another indexing process is building the next version of the index in a
different directory. When it's time to switch to the new index, the search
process closes the old IndexSearcher, MultiReader (2) and FSDirectories (2)
and opens the new index. Subsequently, attempts to delete the old index
files fail because there are apparently still references to them from the
old MMapDirectory (the deletes succeed when using FSDirectory).

My understanding is that the file mapping is valid until the underlying
buffer is garbage-collected. Is there a deterministic way of releasing the
old memory mapped files so that they can be deleted sucessfully?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message