lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <luc...@mikemccandless.com>
Subject Re: Indexing-Error: Cannot delete <File>
Date Mon, 26 Feb 2007 23:56:50 GMT
"robisbob" <robisbob@web.de> wrote:

> i hope someone can help me. If I index a file directory I get the error 
> you see here.
> >  caught a class java.io.IOException
> >  with message: Cannot delete _57e.tis
> > Exception in thread "main" java.io.IOException: Cannot delete _57e.tis
> >         at 
> > org.apache.lucene.store.FSDirectory.deleteFile(FSDirectory.java:198)
> >         at 
> > org.apache.lucene.index.SegmentMerger.createCompoundFile(SegmentMerger.java:157)
> >         at 
> > org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:100)
> >         at 
> > org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:487)
> >         at 
> > org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:458)
> >         at 
> > org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:310)
> 
> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message