You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2006/11/27 23:26:24 UTC

[jira] Commented: (LUCENE-727) MMapDirectory can't create new index on Windows

    [ http://issues.apache.org/jira/browse/LUCENE-727?page=comments#action_12453726 ] 
            
Hoss Man commented on LUCENE-727:
---------------------------------

Can you inlcude a full stack trace of the exception so we can see what code path causes this problem?

it would be even better if you could inlcude a JUnit test demonstrating the problem.

> MMapDirectory can't create new index on Windows
> -----------------------------------------------
>
>                 Key: LUCENE-727
>                 URL: http://issues.apache.org/jira/browse/LUCENE-727
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.0.0
>         Environment: Windows XP, JDK 1.4
>            Reporter: benson margulies
>
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: [jira] Commented: (LUCENE-727) MMapDirectory can't create new index on Windows

Posted by robert engels <re...@ix.netcom.com>.
This is a known JDK issue with memory mapping a file.

The references may not be GC'd at the time the request to delete is  
performed, and thus you will get an IOException.

See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154


On Nov 27, 2006, at 4:26 PM, Hoss Man (JIRA) wrote:

>     [ http://issues.apache.org/jira/browse/LUCENE-727? 
> page=comments#action_12453726 ]
>
> Hoss Man commented on LUCENE-727:
> ---------------------------------
>
> Can you inlcude a full stack trace of the exception so we can see  
> what code path causes this problem?
>
> it would be even better if you could inlcude a JUnit test  
> demonstrating the problem.
>
>> MMapDirectory can't create new index on Windows
>> -----------------------------------------------
>>
>>                 Key: LUCENE-727
>>                 URL: http://issues.apache.org/jira/browse/LUCENE-727
>>             Project: Lucene - Java
>>          Issue Type: Bug
>>          Components: Index
>>    Affects Versions: 2.0.0
>>         Environment: Windows XP, JDK 1.4
>>            Reporter: benson margulies
>>
>> 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: http://issues.apache.org/jira/secure/ 
> Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/ 
> software/jira
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>