lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-727) MMapDirectory can't create new index on Windows
Date Tue, 28 Nov 2006 19:20:23 GMT
    [ ] 
Michael McCandless commented on LUCENE-727:

Thank you Benson for the unit test and opening this issue!

Indeed, when I run your test, I see the exception in Lucene-2.0.0, but, not on the trunk.

It looks like lockless commits (LUCENE-701 ) has fixed this because the files in the index
are now "write once".  Specifically, we no longer try to rename any files (nor do we even
use the "deletable" file anymore).  The general philosopy is to rely on as little from the
filesystem as we possibly can, so as to maximize portability...

This is the exception on Lucene 2.0.0:

    [junit] Testcase: testMmapIndex(org.apache.lucene.index.TestWindowsMMap):	Caused an ERROR
    [junit] Cannot delete F:\mike\src\lucene-2.0.0\testLuceneMmap\deletable
    [junit] Cannot delete F:\mike\src\lucene-2.0.0\testLuceneMmap\deletable
    [junit] 	at
    [junit] 	at org.apache.lucene.index.IndexWriter.writeDeleteableFiles(
    [junit] 	at org.apache.lucene.index.IndexWriter.deleteFiles(
    [junit] 	at org.apache.lucene.index.IndexWriter.mergeSegments(
    [junit] 	at org.apache.lucene.index.IndexWriter.mergeSegments(
    [junit] 	at org.apache.lucene.index.IndexWriter.maybeMergeSegments(
    [junit] 	at org.apache.lucene.index.IndexWriter.addDocument(
    [junit] 	at org.apache.lucene.index.IndexWriter.addDocument(
    [junit] 	at org.apache.lucene.index.TestWindowsMMap.testMmapIndex(

Since this is fixed on trunk, I'll resolve it as fixed.

But first I'll commit the new unit test (thanks Benson)!

> MMapDirectory can't create new index on Windows
> -----------------------------------------------
>                 Key: LUCENE-727
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.0.0
>         Environment: Windows XP, JDK 1.4
>            Reporter: benson margulies
>         Assigned To: Michael McCandless
>         Attachments: lucenewindowsmmaptest.tgz
> When I set the system property to request the use of the mmap directory, and start building
a large index, the process dies with an IOException trying to delete a file. Apparently, Lucene
isn't closing down the memory map before deleting the file.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


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

View raw message