lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robisbob <>
Subject Re: Indexing-Error: Cannot delete <File>
Date Tue, 27 Feb 2007 06:21:27 GMT
Thanx for your answer.
I will use the latest version to check this. Unfortunately I have only 
access to the computer, where the application will be run, once a week. 
And I can't reproduce the error at my local machine or any other 
computer I have access to.
So If someone has (better had) the same error, now it's the time to go 
public !!!

>> i hope someone can help me. If I index a file directory I get the error 
>> you see here.
>>>  caught a class
>>>  with message: Cannot delete _57e.tis
>>> Exception in thread "main" Cannot delete _57e.tis
>>>         at 
>>>         at 
>>> org.apache.lucene.index.SegmentMerger.createCompoundFile(
>>>         at 
>>> org.apache.lucene.index.SegmentMerger.merge(
>>>         at 
>>> org.apache.lucene.index.IndexWriter.mergeSegments(
>>>         at 
>>> org.apache.lucene.index.IndexWriter.maybeMergeSegments(
>>>         at 
>>> org.apache.lucene.index.IndexWriter.addDocument(
>> So Lucene tries to delete this file, which exists and can be deleted 
>> manually. But somehow Lucene can't.
>> The weird thing is, if I index the same directory (same content, not 
>> same network) on my local machine, there is no such error.
>> I have searched the Internet for these kind of error and found only 
>> advises about closing the FileWriter, which I do.
>> I use lucene-1.5-rc1.
> There are several sneaky IO related issues in Lucene, that have now been
> fixed
> in Lucene 2.1, that could explain this.  Is it possible to test Lucene
> 2.1 to
> see if this issue is still happening?
> Mike
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message