lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Potential Segment corruption
Date Thu, 02 Jun 2005 16:58:16 GMT
Doug Cutting wrote:
> I think the fix is much simpler.  This is a bug in FSDirectory. 
> Directory.createOutput() should always create a new empty file, and 
> FSDirectory's implementation does not ensure this.  It should try to 
> delete the file before opening it and/or call 
> RandomAccessFile.setLength(0).
> 
> I've attached a patch.

I have now committed this patch.

Doug

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


Mime
View raw message