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: IOException question
Date Fri, 17 Nov 2006 03:14:35 GMT
Antony Bowesman wrote:
> Hi,
> 
> I have the IndexWriter.infoStream set to System.out and get the following
> 
> merging segments _4m (2 docs) _4n (1 docs) into _4o (3 docs)
> java.io.IOException: Cannot delete PathToDB\_29.cfs; Will re-try later.
> java.io.IOException: Cannot delete PathToDB\_29.cfs; Will re-try later.
> 
> Is this normal?  IndexWriter.deleteFiles() is giving the message and it 
> explicitly catches the IOException which is what makes me think it might 
> be normal.

Do you also have a reader open against this index?  If yes, then this is 
totally normal on Windows.  A reader holds open the segments cfs files 
that it is using, so when the writer tries to delete them (because they 
were merged) the delete fails and Lucene will try again later.

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